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.2

do_action('set_object_terms') is found 1 times:

  • /wp-includes/taxonomy.php line 2955
    2951
    2952
    2953
    2954
    2955
    2956
    2957
    2958
    2959
    2960
    2961
         * @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: