get_bloginfo_rss

函式
get_bloginfo_rss ( $show = '' )
引數
  • (string) $show See get_bloginfo() for possible values.
    Required:
    Default: (empty)
返回值
  • (string)
相關
  • get_bloginfo()
定義位置
相關方法
bloginfo_rssget_bloginfoget_blog_statusget_blog_postget_blog_list
引入
1.5.1
棄用
-

get_bloginfo_rss: 該函式檢索當前站點或多站點網路中的當前站點的父站點的RSS feed URL。

檢索bloginfo函式的RSS容器。

你可以使用get_bloginfo()函式檢索任何你能檢索到的東西。所有的東西都將被剝離標籤和字元轉換,當值被檢索到用於Feeds時。

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 );
}

常見問題

FAQs
檢視更多 >