Action hook 'delete_term'

in WP Core File wp-includes/taxonomy.php at line 2194

Description

Fires after a term is deleted from the database and the cache is cleaned. The {@see 'delete_$taxonomy'} hook is also available for targeting a specific taxonomy.

Occurrences

Filename Line Number
wp-includes/taxonomy.php 2194

Parameters

Type Name Description
int $term Term ID.
int $tt_id Term taxonomy ID.
string $taxonomy Taxonomy slug.
WP_Term $deleted_term Copy of the already-deleted term.
array $object_ids List of term object IDs.

PHP Doc

/**
	 * Fires after a term is deleted from the database and the cache is cleaned.
	 *
	 * The {@see 'delete_$taxonomy'} hook is also available for targeting a specific
	 * taxonomy.
	 *
	 * @since 2.5.0
	 * @since 4.5.0 Introduced the `$object_ids` argument.
	 *
	 * @param int     $term         Term ID.
	 * @param int     $tt_id        Term taxonomy ID.
	 * @param string  $taxonomy     Taxonomy slug.
	 * @param WP_Term $deleted_term Copy of the already-deleted term.
	 * @param array   $object_ids   List of term object IDs.
	 */