wp_insert_term_data WordPress Filter Hook
The wp_insert_term_data hook is called when a new term is created or updated. It allows you to modify the term data before it is saved to the database. This hook is called after the term data has been sanitized but before it is saved to the database.
apply_filters( 'wp_insert_term_data', array $data , string $taxonomy , array $args ) #
Filters term data before it is inserted into the database.
Parameters
- $data
(array)Term data to be inserted.
- $taxonomy
(string)Taxonomy slug.
- $args
(array)Arguments passed to wp_insert_term().
Source
File: wp-includes/taxonomy.php
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |