do_action( ‘delete_term’, int $term, int $tt_id, string $taxonomy, WP_Term $deleted_term, array $object_ids )

Fires after a term is deleted from the database and the cache is cleaned.

Description

The ‘delete_$taxonomy’ hook is also available for targeting a specific taxonomy.

Parameters

$termint
Term ID.
$tt_idint
Term taxonomy ID.
$taxonomystring
Taxonomy slug.
$deleted_termWP_Term
Copy of the already-deleted term.
$object_idsarray
List of term object IDs.

Source

do_action( 'delete_term', $term, $tt_id, $taxonomy, $deleted_term, $object_ids );

Changelog

VersionDescription
4.5.0Introduced the $object_ids argument.
2.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.