do_action( 'delete_term', int $term, int $tt_id, string $taxonomy, WP_Term $deleted_term, array $object_ids )
Fires after a term is deleted from the database and the cache is cleaned.
Description
The ‘delete_$taxonomy’ hook is also available for targeting a specific taxonomy.
Parameters
- $term
-
(int) Term ID.
- $tt_id
-
(int) Term taxonomy ID.
- $taxonomy
-
(string) Taxonomy slug.
- $deleted_term
-
(WP_Term) Copy of the already-deleted term.
- $object_ids
-
(array) List of term object IDs.
Source
File: wp-includes/taxonomy.php
Changelog
Version | Description |
---|---|
4.5.0 | Introduced the $object_ids argument. |
2.5.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/delete_term