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