delete_term_relationships action-hook . WP 2.9.0
Fires immediately before an object-term relationship is deleted.
Usage
add_action( 'delete_term_relationships', 'action_function_name_4618', 10, 3 ); function action_function_name_4618( $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
delete_term_relationships
wp-includes/taxonomy.php 2790
do_action( 'delete_term_relationships', $object_id, $tt_ids, $taxonomy );