rss_tag_pre
Fires between the xml and rss tags in a feed.
Использование
add_action( 'rss_tag_pre', 'wp_kama_rss_tag_pre_action' ); /** * Function for `rss_tag_pre` action-hook. * * @param string $context Type of feed. Possible values include 'rss2', 'rss2-comments', 'rdf', 'atom', and 'atom-comments'. * * @return void */ function wp_kama_rss_tag_pre_action( $context ){ // action... }
- $context(строка)
- Type of feed. Possible values include 'rss2', 'rss2-comments', 'rdf', 'atom', and 'atom-comments'.
Список изменений
С версии 4.0.0 | Введена. |
Где вызывается хук
В файле: /wp-includes/feed-rss2.php
wp-includes/feed-rss2.php 21
do_action( 'rss_tag_pre', 'rss2' );
wp-includes/feed-rdf.php 14
do_action( 'rss_tag_pre', 'rdf' );
wp-includes/feed-atom-comments.php 12
do_action( 'rss_tag_pre', 'atom-comments' );
wp-includes/feed-rss2-comments.php 13
do_action( 'rss_tag_pre', 'rss2-comments' );
wp-includes/feed-atom.php 19
do_action( 'rss_tag_pre', 'atom' );