pre_{$taxonomy}_{$field} WordPress Filter Hook
The pre_{$taxonomy}_{$field} hook is called before a specific taxonomy field is updated. This hook can be used to modify the value of the field before it is saved to the database.
apply_filters( "pre_{$taxonomy}_{$field}", mixed $value ) #
Filters a taxonomy field before it is sanitized.
Description
The dynamic portions of the filter name, $taxonomy
and $field
, refer to the taxonomy slug and field name, respectively.
Parameters
- $value
(mixed)Value of the taxonomy field.
Source
File: wp-includes/taxonomy.php
Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |