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.


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

Список изменений

С версии 2.5.0 Введена.
С версии 4.5.0 Introduced the $object_ids argument.

Где вызывается хук

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

Где используется хук в ядре WordPress

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