On this page
do_action( "delete_{$taxonomy}", int $term, int $tt_id, WP_Term $deleted_term, array $object_ids )
Fires after a term in a specific taxonomy is deleted.
Description
The dynamic portion of the hook name, $taxonomy, refers to the specific taxonomy the term belonged to.
Possible hook names include:
delete_categorydelete_post_tag
Parameters
$termint-
Term ID.
$tt_idint-
Term taxonomy ID.
$deleted_termWP_Term-
Copy of the already-deleted term.
$object_idsarray-
List of term object IDs.
Source
File: wp-includes/taxonomy.php. View all references
do_action( "delete_{$taxonomy}", $term, $tt_id, $deleted_term, $object_ids );
Related
Used By
| Used By | Description |
|---|---|
| wp_delete_term() wp-includes/taxonomy.php | Removes a term from the database. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/delete_taxonomy