added_term_relationship

added_term_relationship

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

do_action('added_term_relationship') is found 1 times:

  • /wp-includes/taxonomy.php line 2882
    		 * @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 );