Home/Hooks/added_term_relationship
ACTION

added_term_relationship

Fires immediately after an object-term relationship is added.

wp-includes/taxonomy.php
Line 2899
3 Parameters
View Source

Usage

add_action( 'added_term_relationship', 'your_callback_function', 10, 3 );

Action Callback:

function your_callback_function( $object_id, $tt_id, $taxonomy ) {
    // Your code here
    
}

Parameters

$object_id

Parameter 1

$tt_id

Parameter 2

$taxonomy

Parameter 3

⚡ Action Hook

Action hooks allow you to insert custom code at specific points during WordPress execution. Actions do not return any values.