set_object_terms

set_object_terms

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

do_action('set_object_terms') is found 1 times:

  • /wp-includes/taxonomy.php line 2955
    	 * @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.
    

See this hook used in plugins: