WordPress开发者和主题制作者的搜索引擎



do_feed_atom ›

Since2.1.0
已弃用n/a
do_feed_atom ( $for_comments )
参数:
  • (bool) $for_comments True for the comment feed, false for normal feed.
    Required: Yes
查看:
定义在:
文档:

Load either Atom comment feed or Atom posts feed.



源码

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