feed_link
Filters the feed type permalink.
Использование
add_filter( 'feed_link', 'wp_kama_feed_link_filter', 10, 2 ); /** * Function for `feed_link` filter-hook. * * @param string $output The feed permalink. * @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_feed_link_filter( $output, $feed ){ // filter... return $output; }
- $output(строка)
- The feed permalink.
- $feed(строка)
- The feed type. Possible values include 'rss2', 'atom', or an empty string for the default feed type.
Список изменений
С версии 1.5.0 | Введена. |
Где вызывается хук
feed_link
wp-includes/link-template.php 732
return apply_filters( 'feed_link', $output, $feed );