W3cubDocs

/WordPress

do_action( "delete_{$taxonomy}", int $term, int $tt_id, mixed $deleted_term, array $object_ids )

Fires after a term in a specific taxonomy is deleted.

Description

The dynamic portion of the hook name, $taxonomy, refers to the specific taxonomy the term belonged to.

Parameters

$term

(int) Term ID.

$tt_id

(int) Term taxonomy ID.

$deleted_term

(mixed) Copy of the already-deleted term, in the form specified by the parent function. WP_Error otherwise.

$object_ids

(array) List of term object IDs.

Source

File: wp-includes/taxonomy.php

View on Trac

Changelog

Version Description
4.5.0 Introduced the $object_ids argument.
2.3.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/delete_taxonomy