Filters the term field sanitized for display.
Description
The dynamic portion of the hook name, $field
, refers to the term field name.
Parameters
$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.
Source
$value = apply_filters( "term_{$field}", $value, $term_id, $taxonomy, $context );
Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |
⚠️ Beware when using this filter with the
name
field, anotherterm_name
filter exists and does not take the same arguments, nor the same amount of arguments.Please check the ticket in Trac for more details.