用于bloginfo功能的RSS容器。
原型
get_bloginfo_rss( string $show = '' )
描述
你可以使用get_bloginfo()函数检索任何可以使用的内容。当检索到值以在Feed中使用时,所有内容都将被剥离标签和转换的字符。
参考:
- get_bloginfo()
参数
$show
(string)
(Optional)
有关可能的值,请参阅get_bloginfo()。
返回值
(string)
源文件
路径:wp-includes/feed.php
<?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 );
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/get_bloginfo_rss/