add_term_relationship

add_term_relationship

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

See hook in core

Displaying hooks found in version: wordpress-6.7

do_action('add_term_relationship') is found 1 times:

  • /wp-includes/taxonomy.php line 2868
    		 * @param int    $object_id Object ID.
    		 * @param int    $tt_id     Term taxonomy ID.
    		 * @param string $taxonomy  Taxonomy slug.
    		 */
    		do_action( 'add_term_relationship', $object_id, $tt_id, $taxonomy );
    
    		$wpdb->insert(
    			$wpdb->term_relationships,
    			array(
    				'object_id'        => $object_id,
    				'term_taxonomy_id' => $tt_id,