term_(field)_rss filter-hookWP 2.3.0

Filters the term field for use in RSS.

The dynamic portion of the hook name, $field, refers to the term field.

Usage

add_filter( 'term_(field)_rss', 'wp_kama_term_field_rss_filter', 10, 2 );

/**
 * Function for `term_(field)_rss` filter-hook.
 * 
 * @param mixed  $value    Value of the term field.
 * @param string $taxonomy Taxonomy slug.
 *
 * @return mixed
 */
function wp_kama_term_field_rss_filter( $value, $taxonomy ){

	// filter...
	return $value;
}
$value(mixed)
Value of the term field.
$taxonomy(string)
Taxonomy slug.

Changelog

Since 2.3.0 Introduced.

Where the hook is called

sanitize_term_field()
term_(field)_rss
wp-includes/taxonomy.php 1829
$value = apply_filters( "term_{$field}_rss", $value, $taxonomy );

Where the hook is used in WordPress

wp-includes/default-filters.php 181
add_filter( 'term_name_rss', 'convert_chars' );