bloginfo_rss
apply_filters( ‘bloginfo_rss’, string $rss_container , string $show )
过滤钩子:过滤bloginfo以显示在RSS提要中。
Filter Hook: Filters the bloginfo for display in RSS feeds.
说明(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 |
bloginfo_rss 为WP2原创文章,链接:https://www.wp2.cn/hook/bloginfo_rss/