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.

Description Description

Parameters Parameters


(int) Term ID.


(int) Term taxonomy ID.


(string) Taxonomy slug.


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


(array) List of term object IDs.

Top ↑

Source Source

File: wp-includes/taxonomy.php

View on Trac

Top ↑

Changelog Changelog

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

Top ↑

User Contributed Notes User Contributed Notes

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