函数原型
get_bloginfo_rss( string $show = ” ): string
函数描述
Retrieves RSS container for the bloginfo function.
是否弃用
未弃用
函数参数
-
$show
string
Optional - See get_bloginfo() for possible values.
More Arguments from get_bloginfo( … $show )
Site info to retrieve. Default empty (site name).
Default:
''
函数返回值
string
函数位置
File: wp-includes/feed.php.
函数源码
function get_bloginfo_rss( $show = '' ) {
$info = strip_tags( get_bloginfo( $show ) );
/**
* Filters the bloginfo for use in RSS feeds.
*
* @since 2.2.0
*
* @see convert_chars()
* @see get_bloginfo()
*
* @param string $info Converted string value of the blog information.
* @param string $show The type of blog information to retrieve.
*/
return apply_filters( 'get_bloginfo_rss', convert_chars( $info ), $show );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 1.5.1 | Introduced. |

