WordPress at Your Fingertips
action is not described

delete_term action-hook . WP 2.5.0

Fires after a term is deleted from the database and the cache is cleaned.

The delete_(taxonomy) hook is also available for targeting a specific taxonomy.


add_action( 'delete_term', 'action_function_name_2859', 10, 5 );
function action_function_name_2859( $term, $tt_id, $taxonomy, $deleted_term, $object_ids ){
	// action...
Term ID.
Term taxonomy ID.
Taxonomy slug.
Copy of the already-deleted term.
List of term object IDs.


Since 2.5.0 Introduced.
Since 4.5.0 Introduced the $object_ids argument.

Where the hook is called

wp-includes/taxonomy.php 2072
do_action( 'delete_term', $term, $tt_id, $taxonomy, $deleted_term, $object_ids );

Where in WP core the hook is used WordPress

wp-includes/default-filters.php 430
add_action( 'delete_term', '_wp_delete_tax_menu_item', 10, 3 );