bloginfo_rss

函式
bloginfo_rss ( $show = '' )
引數
  • (string) $show See get_bloginfo() for possible values.
    Required:
    Default: (empty)
相關
  • get_bloginfo()
定義位置
相關方法
get_bloginfo_rssbloginfoget_bloginfologin_footerwp_login_form
引入
0.71
棄用
-

bloginfo_rss: 該函式與bloginfo類似,但用於輸出RSS訂閱的資訊。

顯示bloginfo函式的RSS容器。

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

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function bloginfo_rss( $show = '' ) {
/**
* Filters 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 );
}
function bloginfo_rss( $show = '' ) { /** * Filters 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 ); }
function bloginfo_rss( $show = '' ) {
	/**
	 * Filters 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 );
}

常見問題

FAQs
檢視更多 >