category_feed_link filter-hookWP 1.5.1

Filters the category feed link.

Usage

add_filter( 'category_feed_link', 'wp_kama_category_feed_link_filter', 10, 2 );

/**
 * Function for `category_feed_link` filter-hook.
 * 
 * @param string $link The category feed link.
 * @param string $feed Feed type. Possible values include 'rss2', 'atom'.
 *
 * @return string
 */
function wp_kama_category_feed_link_filter( $link, $feed ){

	// filter...
	return $link;
}
$link(string)
The category feed link.
$feed(string)
Feed type. Possible values include 'rss2', 'atom'.

Changelog

Since 1.5.1 Introduced.

Where the hook is called

get_term_feed_link()
category_feed_link
wp-includes/link-template.php 978
$link = apply_filters( 'category_feed_link', $link, $feed );

Where the hook is used in WordPress

Usage not found.