search_feed_link filter-hookWP 2.5.0

Filters the search feed link.

Usage

add_filter( 'search_feed_link', 'wp_kama_search_feed_link_filter', 10, 3 );

/**
 * Function for `search_feed_link` filter-hook.
 * 
 * @param string $link Search feed link.
 * @param string $feed Feed type. Possible values include 'rss2', 'atom'.
 * @param string $type The search type. One of 'posts' or 'comments'.
 *
 * @return string
 */
function wp_kama_search_feed_link_filter( $link, $feed, $type ){

	// filter...
	return $link;
}
$link(string)
Search feed link.
$feed(string)
Feed type. Possible values include 'rss2', 'atom'.
$type(string)
The search type. One of 'posts' or 'comments'.

Changelog

Since 2.5.0 Introduced.

Where the hook is called

get_search_feed_link()
search_feed_link
get_search_comments_feed_link()
search_feed_link
wp-includes/link-template.php 1249
return apply_filters( 'search_feed_link', $link, $feed, 'posts' );
wp-includes/link-template.php 1282
return apply_filters( 'search_feed_link', $link, $feed, 'comments' );

Where the hook is used in WordPress

Usage not found.