Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: deleted_term_relationships

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
2659            * Fires immediately after an object-term relationship is deleted.
2660            *
2661            * @since 2.9.0
2662            * @since 4.7.0 Added the `$taxonomy` parameter.
2663            *
2664            * @param int    $object_id Object ID.
2665            * @param array  $tt_ids    An array of term taxonomy IDs.
2666            * @param string $taxonomy  Taxonomy slug.
2667            */
2668           do_action( 'deleted_term_relationships', $object_id, $tt_ids, $taxonomy );
2669
2670           wp_update_term_count( $tt_ids, $taxonomy );
2671
2672           return (bool) $deleted;
2673      }
2674
2675      return false;
2676 }
2677