delete_blog_option()

调用do_feed_rss2的hook钩子

描述

装载RSS2通用feed或RSS2文章feed。

用法

<?php do_feed_rss2( $for_comments ) ?>

参数

$for_comments

(boolean) (必填) true for the comment feed, false for normal feed.

默认值: None

返回值

(void) 

This function does not return a value.

注意

使用到: load_template() to load feed template.

历史

添加于 版本: 2.1.0

源文件

do_feed_rss2() 函数的代码位于 wp-includes/functions.php.

/**
* Load either the RSS2 comment feed or the RSS2 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_rss2( $for_comments ) {

if ( $for_comments )

load_template( ABSPATH . WPINC . ‘/feed-rss2-comments.php’ );

else

load_template( ABSPATH . WPINC . ‘/feed-rss2.php’ );

}
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索