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
2457            * Fires immediately after an object-term relationship is deleted.
2458            *
2459            * @since 2.9.0
2460            * @since 4.7.0 Added the `$taxonomy` parameter.
2461            *
2462            * @param int    $object_id Object ID.
2463            * @param array  $tt_ids    An array of term taxonomy IDs.
2464            * @param string $taxonomy  Taxonomy slug.
2465            */
2466           do_action( 'deleted_term_relationships', $object_id, $tt_ids, $taxonomy );
2467
2468           wp_update_term_count( $tt_ids, $taxonomy );
2469
2470           return (bool) $deleted;
2471      }
2472
2473      return false;
2474 }
2475