the_feed_link
Filters the feed link anchor tag.
Использование
add_filter( 'the_feed_link', 'wp_kama_the_feed_link_filter', 10, 2 ); /** * Function for `the_feed_link` filter-hook. * * @param string $link The complete anchor tag for a feed link. * @param string $feed The feed type. Possible values include 'rss2', 'atom', or an empty string for the default feed type. * * @return string */ function wp_kama_the_feed_link_filter( $link, $feed ){ // filter... return $link; }
- $link(строка)
- The complete anchor tag for a feed link.
- $feed(строка)
- The feed type. Possible values include 'rss2', 'atom', or an empty string for the default feed type.
Список изменений
С версии 3.0.0 | Введена. |
Где вызывается хук
the_feed_link
wp-includes/link-template.php 679
echo apply_filters( 'the_feed_link', $link, $feed );