deleted_term_relationships action-hook . WP 2.9.0
Fires immediately after an object-term relationship is deleted.
Usage
add_action( 'deleted_term_relationships', 'action_function_name_6759', 10, 3 ); function action_function_name_6759( $object_id, $tt_ids, $taxonomy ){ // action... }
- $object_id(int)
- Object ID.
- $tt_ids(array)
- An array of term taxonomy IDs.
- $taxonomy(string)
- Taxonomy slug.
Changelog
Since 2.9.0 | Introduced. |
Since 4.7.0 | Added the $taxonomy parameter. |
Where the hook is called
deleted_term_relationships
wp-includes/taxonomy.php 2807
do_action( 'deleted_term_relationships', $object_id, $tt_ids, $taxonomy );