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
3053            * Fires immediately after an object-term relationship is deleted.
3054            *
3055            * @since 2.9.0
3056            * @since 4.7.0 Added the `$taxonomy` parameter.
3057            *
3058            * @param int    $object_id Object ID.
3059            * @param array  $tt_ids    An array of term taxonomy IDs.
3060            * @param string $taxonomy  Taxonomy slug.
3061            */
3062           do_action( 'deleted_term_relationships', $object_id, $tt_ids, $taxonomy );
3063
3064           wp_update_term_count( $tt_ids, $taxonomy );
3065
3066           return (bool) $deleted;
3067      }
3068
3069      return false;
3070 }
3071