do_action( 'pre_delete_term', int $term, string $taxonomy )
- Since
- 4.1.0
Fires when deleting a term, before any modifications are made to posts or terms.
Parameters
$termint- Term ID.
$taxonomystring- Taxonomy name.
Fired at · 1
wp-includes/taxonomy.php:2111wp_delete_term()
Source
* * @since 4.1.0 * * @param int $term Term ID. * @param string $taxonomy Taxonomy name. */ do_action( 'pre_delete_term', $term, $taxonomy ); // Update children to point to new parent. if ( is_taxonomy_hierarchical( $taxonomy ) ) { $term_obj = get_term( $term, $taxonomy ); if ( is_wp_error( $term_obj ) ) { return $term_obj;History
Introduced in 4.1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.