delete_term_taxonomy
Fires immediately before a term taxonomy ID is deleted.
Usage
add_action( 'delete_term_taxonomy', 'wp_kama_delete_term_taxonomy_action' ); /** * Function for `delete_term_taxonomy` action-hook. * * @param int $tt_id Term taxonomy ID. * * @return void */ function wp_kama_delete_term_taxonomy_action( $tt_id ){ // action... }
- $tt_id(int)
- Term taxonomy ID.
Changelog
Since 2.9.0 | Introduced. |
Where the hook is called
delete_term_taxonomy
wp-includes/taxonomy.php 2134
do_action( 'delete_term_taxonomy', $tt_id );