do_feed_atom()
do_feed_atom( bool $for_comments )
加载Atom comment feed或Atom posts feed。
Load either Atom comment feed or Atom posts feed.
说明(Description)
另见函数 load_template()
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$for_comments | (bool) | 必需 | 对于comment feed为True,对于normal feed为false。 |
返回(Return)
无返回值
源码(Source)
/** * Load either Atom comment feed or Atom posts feed. * * @since 2.1.0 * * @see load_template() * * @param bool $for_comments True for the comment feed, false for normal 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' ); }
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.1.0 | wp-includes/functions.php:1613 | 0 | 1 function |
do_feed_atom() 为WP2原创文章,链接:https://www.wp2.cn/functions/do_feed_atom/