On this page
do_action( 'add_term_relationship', int $object_id, int $tt_id, string $taxonomy )
Fires immediately before an object-term relationship is added.
Parameters
$object_idint-
Object ID.
$tt_idint-
Term taxonomy ID.
$taxonomystring-
Taxonomy slug.
Source
File: wp-includes/taxonomy.php. View all references
do_action( 'add_term_relationship', $object_id, $tt_id, $taxonomy );
Related
Used By
| Used By | Description |
|---|---|
| wp_set_object_terms() wp-includes/taxonomy.php | Creates term and taxonomy relationships. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/add_term_relationship