Action hook 'add_term_relationship'

in WP Core File wp-includes/taxonomy.php at line 2867

Description

Fires immediately before an object-term relationship is added.

Occurrences

Filename Line Number
wp-includes/taxonomy.php 2867

Parameters

Type Name Description
int $object_id Object ID.
int $tt_id Term taxonomy ID.
string $taxonomy Taxonomy slug.

PHP Doc

/**
		 * Fires immediately before an object-term relationship is added.
		 *
		 * @since 2.9.0
		 * @since 4.7.0 Added the `$taxonomy` parameter.
		 *
		 * @param int    $object_id Object ID.
		 * @param int    $tt_id     Term taxonomy ID.
		 * @param string $taxonomy  Taxonomy slug.
		 */