W3cubDocs

/WordPress

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_id

(int) Object ID.

$terms

(array) An array of object terms.

$tt_ids

(array) An array of term taxonomy IDs.

$taxonomy

(string) Taxonomy slug.

$append

(bool) Whether to append new terms to the old terms.

$old_tt_ids

(array) Old array of term taxonomy IDs.

Source

File: wp-includes/taxonomy.php

View on Trac

Changelog

Version Description
2.8.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/set_object_terms