do_feed_atom

函式
do_feed_atom ( $for_comments )
引數
  • (bool) $for_comments True for the comment feed, false for normal feed.
    Required:
相關
  • load_template()
定義位置
相關方法
do_feeddo_feed_rdfdo_feed_rssdo_feed_rss2add_feed
引入
2.1.0
棄用
-

do_feed_atom: 這個鉤子用於輸出當前頁面的Atom feed。

載入Atom評論feed或Atom文章feed。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function do_feed_atom( $for_comments ) {
if ( $for_comments ) {
load_template( ABSPATH . WPINC . '/feed-atom-comments.php' );
} else {
load_template( ABSPATH . WPINC . '/feed-atom.php' );
}
}
function do_feed_atom( $for_comments ) { if ( $for_comments ) { load_template( ABSPATH . WPINC . '/feed-atom-comments.php' ); } else { load_template( ABSPATH . WPINC . '/feed-atom.php' ); } }
function do_feed_atom( $for_comments ) {
	if ( $for_comments ) {
		load_template( ABSPATH . WPINC . '/feed-atom-comments.php' );
	} else {
		load_template( ABSPATH . WPINC . '/feed-atom.php' );
	}
}

常見問題

FAQs
檢視更多 >