the_category_rss filter-hook . WP 1.2.0
Filters all of the post categories for display in a feed.
Usage
add_filter( 'the_category_rss', 'filter_function_name_8681', 10, 2 ); function filter_function_name_8681( $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
the_category_rss
wp-includes/feed.php 426
return apply_filters( 'the_category_rss', $the_list, $type );