WordPress at a glance
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.

Usage

add_action( 'delete_term', 'action_function_name_7940', 10, 5 );
function action_function_name_7940( $term, $tt_id, $taxonomy, $deleted_term, $object_ids ){
	// action...
}
$term(int)
Term ID.
$tt_id(int)
Term taxonomy ID.
$taxonomy(string)
Taxonomy slug.
$deleted_term(mixed)
Copy of the already-deleted term, in the form specified by the parent function. WP_Error otherwise.
$object_ids(array)
List of term object IDs.

Notes

  • Since 4.5.0 Introduced the $object_ids argument.

Where the hook is called

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

Where the hook is used (in WP core)

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