函数原型
do_feed_atom( bool $for_comments )
函数描述
Loads either Atom comment feed or Atom posts feed.
是否弃用
未弃用
函数参数
-
$for_comments
bool
Required - True for the comment feed, false for normal feed.
函数返回值
无
函数位置
File: wp-includes/functions.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' );
}
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |

