WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
событие не описано

delete_term хук-событие . 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_4573', 10, 5 );
function action_function_name_4573( $term, $tt_id, $taxonomy, $deleted_term, $object_ids ){
	// action...
}
$term(число)
Term ID.
$tt_id(число)
Term taxonomy ID.
$taxonomy(строка)
Taxonomy slug.
$deleted_term(смешанный)
Copy of the already-deleted term, in the form specified by the parent function. WP_Error otherwise.
$object_ids(массив)
List of term object IDs.

Заметки

  • C версии 4.5.0 Introduced the $object_ids argument.

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

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

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

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