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
2824            * Fires immediately after an object-term relationship is deleted.
2825            *
2826            * @since 2.9.0
2827            * @since 4.7.0 Added the `$taxonomy` parameter.
2828            *
2829            * @param int    $object_id Object ID.
2830            * @param array  $tt_ids    An array of term taxonomy IDs.
2831            * @param string $taxonomy  Taxonomy slug.
2832            */
2833           do_action( 'deleted_term_relationships', $object_id, $tt_ids, $taxonomy );
2834
2835           wp_update_term_count( $tt_ids, $taxonomy );
2836
2837           return (bool) $deleted;
2838      }
2839
2840      return false;
2841 }
2842