term_(field) filter-hook . WP 2.3.0
Filters the term field sanitized for display.
The dynamic portion of the filter name, $field, refers to the term field name.
Usage
add_filter( 'term_(field)', 'filter_function_name_2495', 10, 4 ); function filter_function_name_2495( $value, $term_id, $taxonomy, $context ){ // filter... return $value; }
- $value(mixed)
- Value of the term field.
- $term_id(int)
- Term ID.
- $taxonomy(string)
- Taxonomy slug.
- $context(string)
- Context to retrieve the term field value.
Changelog
Since 2.3.0 | Introduced. |
Where the hook is called
term_(field)
wp-includes/taxonomy.php 1706
$value = apply_filters( "term_{$field}", $value, $term_id, $taxonomy, $context );
Where in WP core the hook is used WordPress
wp-includes/taxonomy.php 161
add_filter( 'term_name_rss', 'convert_chars' );
wp-includes/taxonomy.php 503
add_filter( 'term_link', '_post_format_link', 10, 3 );
wp-includes/taxonomy.php 78
add_filter( 'term_id_filter', 'global_terms', 10, 2 );