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
2660           /**
2661            * Fires immediately after an object-term relationship is deleted.
2662            *
2663            * @since 2.9.0
2664            *
2665            * @param int   $object_id Object ID.
2666            * @param array $tt_ids    An array of term taxonomy IDs.
2667            */
2668           do_action( 'deleted_term_relationships', $object_id, $tt_ids );
2669
2670           wp_update_term_count( $tt_ids, $taxonomy );
2671
2672           return (bool) $deleted;
2673      }
2674
2675      return false;
2676 }
2677