bloginfo_rss()函数是Wordpress函数,显示bloginfo函数的RSS容器。
apply_filters( ‘bloginfo_rss’, string $rss_container, string $show )
说明(Description)
另见函数 get_bloginfo()
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$rss_container | (string) | 博客信息的RSS容器。 |
$show | (string) | 要检索的博客信息的类型。 |
源码(Source)
/**
* Display RSS container for the bloginfo function.
*
* You can retrieve anything that you can using the get_bloginfo() function.
* Everything will be stripped of tags and characters converted, when the values
* are retrieved for use in the feeds.
*
* @since 0.71
* @see get_bloginfo() For the list of possible values to display.
*
* @param string $show See get_bloginfo() for possible values.
*/
function bloginfo_rss($show = '') {
/**
* Filter the bloginfo for display in RSS feeds.
*
* @since 2.1.0
*
* @see get_bloginfo()
*
* @param string $rss_container RSS container for the blog information.
* @param string $show The type of blog information to retrieve.
*/
echo apply_filters( 'bloginfo_rss', get_bloginfo_rss( $show ), $show );
}
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.1.0 | wp-includes/feed.php:65 | 1 | 0 |