pre_delete_term action-hookWP 4.1.0

Fires when deleting a term, before any modifications are made to posts or terms.

Usage

add_action( 'pre_delete_term', 'wp_kama_pre_delete_term_action', 10, 2 );

/**
 * Function for `pre_delete_term` action-hook.
 * 
 * @param int    $term     Term ID.
 * @param string $taxonomy Taxonomy name.
 *
 * @return void
 */
function wp_kama_pre_delete_term_action( $term, $taxonomy ){

	// action...
}
$term(int)
Term ID.
$taxonomy(string)
Taxonomy name.

Changelog

Since 4.1.0 Introduced.

Where the hook is called

wp_delete_term()
pre_delete_term
wp-includes/taxonomy.php 2010
do_action( 'pre_delete_term', $term, $taxonomy );

Where the hook is used in WordPress

Usage not found.