wppaste
WordPress

do_action( 'set_object_terms', int $object_id, array $terms, array $tt_ids, string $taxonomy, bool $append, array $old_tt_ids )

Since
2.8.0
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.

Fired at · 1

  • wp-includes/taxonomy.php:2966wp_set_object_terms()

Source

	 * @param array  $terms      An array of object term IDs or slugs.	 * @param array  $tt_ids     An array of term taxonomy IDs.	 * @param string $taxonomy   Taxonomy slug.	 * @param bool   $append     Whether to append new terms to the old terms.	 * @param array  $old_tt_ids Old array of term taxonomy IDs.	 */	do_action( 'set_object_terms', $object_id, $terms, $tt_ids, $taxonomy, $append, $old_tt_ids ); 	return $tt_ids;} /** * Adds term(s) associated with a given object.

History

Introduced in 2.8.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.8.8 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.