pre_term_{$field} WordPress Filter Hook
The pre_term_{$field} hook is triggered before a term is updated in the database. It allows you to modify the term before it is stored in the database. This hook is similar to the pre_post_{$field} hook.
apply_filters( "pre_term_{$field}", mixed $value , string $taxonomy ) #
Filters a term field value before it is sanitized.
Description
The dynamic portion of the hook name, $field
, refers to the term field.
Parameters
- $value
(mixed)Value of the term field.
- $taxonomy
(string)Taxonomy slug.
Source
File: wp-includes/taxonomy.php
Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |