Usage
add_action( 'add_term_relationship', 'your_callback_function', 10, 3 );Action Callback:
function your_callback_function( $object_id, $tt_id, $taxonomy ) {
// Your code here
}Parameters
$object_idParameter 1
$tt_idParameter 2
$taxonomyParameter 3
⚡ Action Hook
Action hooks allow you to insert custom code at specific points during WordPress execution. Actions do not return any values.