On this page
do_action( 'pre_delete_term', int $term, string $taxonomy )
Fires when deleting a term, before any modifications are made to posts or terms.
Parameters
$termint-
Term ID.
$taxonomystring-
Taxonomy name.
Source
File: wp-includes/taxonomy.php. View all references
do_action( 'pre_delete_term', $term, $taxonomy );
Related
Used By
| Used By | Description |
|---|---|
| wp_delete_term() wp-includes/taxonomy.php | Removes a term from the database. |
Changelog
| Version | Description |
|---|---|
| 4.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_delete_term