do_action( 'delete_term', int $term, int $tt_id, string $taxonomy, mixed $deleted_term, array $object_ids )

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


Parameters

$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.


Source

File: wp-includes/taxonomy.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.5.0 Introduced the $object_ids argument.
WP-2.5.0 Introduced.