On this page
do_action( 'set_object_terms', int $object_id, array $terms, array $tt_ids, string $taxonomy, bool $append, array $old_tt_ids )
Fires after an object’s terms have been set.
Parameters
$object_idint-
Object ID.
$termsarray-
An array of object term IDs or slugs.
$tt_idsarray-
An array of term taxonomy IDs.
$taxonomystring-
Taxonomy slug.
$appendbool-
Whether to append new terms to the old terms.
$old_tt_idsarray-
Old array of term taxonomy IDs.
Source
File: wp-includes/taxonomy.php. View all references
do_action( 'set_object_terms', $object_id, $terms, $tt_ids, $taxonomy, $append, $old_tt_ids );
Related
Used By
| Used By | Description |
|---|---|
| wp_set_object_terms() wp-includes/taxonomy.php | Creates term and taxonomy relationships. |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/set_object_terms