added_term_relationship

added_term_relationship

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('added_term_relationship') is found 1 times:

  • /wp-includes/taxonomy.php line 2888
    2884
    2885
    2886
    2887
    2888
    2889
    2890
    2891
    2892
    2893
    2894
         * @param int    $object_id Object ID.
         * @param int    $tt_id     Term taxonomy ID.
         * @param string $taxonomy  Taxonomy slug.
         */
        do_action( 'added_term_relationship', $object_id, $tt_id, $taxonomy );
     
        $new_tt_ids[] = $tt_id;
    }
     
    if ( $new_tt_ids ) {
        wp_update_term_count( $new_tt_ids, $taxonomy );