pre_delete_term WordPress Action Hook

The pre_delete_term hook is triggered before a term is deleted. It allows you to modify the term object before it is deleted, or cancel the deletion altogether.

do_action( 'pre_delete_term', int $term, string $taxonomy ) #

Fires when deleting a term, before any modifications are made to posts or terms.


Parameters

$term

(int)Term ID.

$taxonomy

(string)Taxonomy name.


Top ↑

Source

File: wp-includes/taxonomy.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More