search_feed_link хук-фильтр . WP 2.5.0
Filters the search feed link.
Использование
add_filter( 'search_feed_link', 'filter_function_name_70', 10, 3 ); function filter_function_name_70( $link, $feed, $type ){ // filter... return $link; }
- $link(строка)
- Search feed link.
- $feed(строка)
- Feed type. Possible values include 'rss2', 'atom'.
- $type(строка)
- The search type. One of 'posts' or 'comments'.
Список изменений
С версии 2.5.0 | Введена. |
Где вызывается хук
search_feed_link
search_feed_link
wp-includes/link-template.php 1171
return apply_filters( 'search_feed_link', $link, $feed, 'posts' );
wp-includes/link-template.php 1204
return apply_filters( 'search_feed_link', $link, $feed, 'comments' );