the_category_rss filter-hookWP 1.2.0

Filters all of the post categories for display in a feed.

Usage

add_filter( 'the_category_rss', 'wp_kama_the_category_rss_filter', 10, 2 );

/**
 * Function for `the_category_rss` filter-hook.
 * 
 * @param string $the_list All of the RSS post categories.
 * @param string $type     Type of feed. Possible values include 'rss2', 'atom'.
 *
 * @return string
 */
function wp_kama_the_category_rss_filter( $the_list, $type ){

	// filter...
	return $the_list;
}
$the_list(string)
All of the RSS post categories.
$type(string)
Type of feed. Possible values include 'rss2', 'atom'.
Default: 'rss2'

Changelog

Since 1.2.0 Introduced.

Where the hook is called

get_the_category_rss()
the_category_rss
wp-includes/feed.php 426
return apply_filters( 'the_category_rss', $the_list, $type );

Where the hook is used in WordPress

Usage not found.