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.
Source
File: wp-includes/taxonomy.php
Changelog
Version | Description |
---|---|
4.1.0 | Introduced. |