{$taxonomy}_{$field} WordPress Filter Hook
The {$taxonomy}_{$field} hook is used to modify a value in the {$taxonomy} taxonomy. The {$field} argument specifies the field to be modified, and the value to be returned by the hook should be the new value for that field. This hook can be used to modify any of the fields in the {$taxonomy} taxonomy, including the name, slug, description, and parent.
apply_filters( "{$taxonomy}_{$field}", mixed $value , int $term_id , string $context ) #
Filters the taxonomy field sanitized for display.
Description
The dynamic portions of the filter name, $taxonomy
, and $field
, refer to the taxonomy slug and taxonomy field, respectively.
Parameters
- $value
(mixed)Value of the taxonomy field.
- $term_id
(int)Term ID.
- $context
(string)Context to retrieve the taxonomy field value.
Source
File: wp-includes/taxonomy.php
Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |