delete_term

Advertisement

Summery Summery

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

Syntax Syntax

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

Parameters Parameters

$term

(int) Term ID.

$tt_id

(int) Term taxonomy ID.

$taxonomy

(string) Taxonomy slug.

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

File: wp-includes/taxonomy.php

Advertisement

Changelog Changelog

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

Advertisement

Leave a Reply

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