Summery Summery

Fires after a term in a specific taxonomy is deleted.

Syntax Syntax

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

Description Description

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

Parameters Parameters


(int) Term ID.


(int) Term taxonomy ID.


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


(array) List of term object IDs.

Source Source

File: wp-includes/taxonomy.php


Changelog Changelog

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


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.