wp_update_term_data WordPress Filter Hook
The wp_update_term_data hook is called after a term's data has been updated in the database. It is passed the term object and the old term object, and is used to update the term's caches.
apply_filters( 'wp_update_term_data', array $data , int $term_id , string $taxonomy , array $args ) #
Filters term data before it is updated in the database.
Parameters
- $data
(array)Term data to be updated.
- $term_id
(int)Term ID.
- $taxonomy
(string)Taxonomy slug.
- $args
(array)Arguments passed to wp_update_term().
Source
File: wp-includes/taxonomy.php
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |