do_feed_rss2()
Loads either the RSS2 comment feed or the RSS2 posts feed.
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
do_feed_rss2( $for_comments );
- $for_comments(true|false) (обязательный)
- True for the comment feed, false for normal feed.
Заметки
- Смотрите: load_template()
Список изменений
С версии 2.1.0 | Введена. |
Код do_feed_rss2() do feed rss2 WP 6.5.2
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' ); } }