(taxonomy)_(field) filter-hook . WP 2.3.0
Filters the taxonomy field sanitized for display.
The dynamic portions of the filter name, $taxonomy, and $field, refer to the taxonomy slug and taxonomy field, respectively.
Usage
add_filter( '(taxonomy)_(field)', 'filter_function_name_8572', 10, 3 ); function filter_function_name_8572( $value, $term_id, $context ){ // filter... return $value; }
- $value(mixed)
- Value of the taxonomy field.
- $term_id(int)
- Term ID.
- $context(string)
- Context to retrieve the taxonomy field value.
Changelog
Since 2.3.0 | Introduced. |
Where the hook is called
(taxonomy)_(field)
wp-includes/taxonomy.php 1720
$value = apply_filters( "{$taxonomy}_{$field}", $value, $term_id, $context );