1. 首页
  2. WordPress 函数手册

get_bloginfo_rss()

apply_filters( ‘get_bloginfo_rss’, string $info, string $show )

过滤器::过滤博客信息以用于RSS提要。
Filter Hook: Filters the bloginfo for use in RSS feeds.

目录锚点:#说明#参数#源码


说明(Description)

另见函数 convert_chars()


参数(Parameters)

参数 类型 说明
$info (string) 已转换日志信息的字符串值。
$show (string) 要检索的博客信息的类型。

源码(Source)

/**
 * 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 1.5.1
 * @see get_bloginfo() For the list of possible values to display.
 *
 * @param string $show See get_bloginfo() for possible values.
 * @return string
 */
function get_bloginfo_rss($show = '') {
	$info = strip_tags(get_bloginfo($show));
	/**
	 * Filter 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 );
}
更新版本 源码位置 使用 被使用
2.2.0 wp-includes/feed.php:39 1 0

get_bloginfo_rss() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_bloginfo_rss/