функция
since 2.1.0
do_feed_rss2()
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
do_feed_rss2( bool $for_comments )
Описание
См. alsoload_template()
Оригинал (английский)
Параметры
$for_comments
bool
обязательный
True для ленты комментариев, false для обычной ленты.
Исходный код
wp-includes/functions.php:1675
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' );
}
}
История изменений
| Версия | Описание |
|---|---|
| 2.1.0 | Introduced. |

