tag_feed_link
Filters the post tag feed link.
Использование
add_filter( 'tag_feed_link', 'wp_kama_tag_feed_link_filter', 10, 2 ); /** * Function for `tag_feed_link` filter-hook. * * @param string $link The tag feed link. * @param string $feed Feed type. Possible values include 'rss2', 'atom'. * * @return string */ function wp_kama_tag_feed_link_filter( $link, $feed ){ // filter... return $link; }
- $link(строка)
- The tag feed link.
- $feed(строка)
- Feed type. Possible values include 'rss2', 'atom'.
Список изменений
С версии 2.3.0 | Введена. |
Где вызывается хук
wp-includes/link-template.php 993
$link = apply_filters( 'tag_feed_link', $link, $feed );