Uma área de pesquisa sobre o WordPress para devs e autores do tema



set_object_terms ›

Desde2.8.0
Obsoleton/a
do_action( 'set_object_terms', $object_id, $terms, $tt_ids, $taxonomy, $append, $old_tt_ids )
Parâmetros: (6)
  • (int) $object_id Object ID.
    Required: Yes
  • (array) $terms An array of object terms.
    Required: Yes
  • (array) $tt_ids An array of term taxonomy IDs.
    Required: Yes
  • (string) $taxonomy Taxonomy slug.
    Required: Yes
  • (bool) $append Whether to append new terms to the old terms.
    Required: Yes
  • (array) $old_tt_ids Old array of term taxonomy IDs.
    Required: Yes
Definido em:
Codex:

Fires after an object's terms have been set.





Fonte

do_action( 'set_object_terms', $object_id, $terms, $tt_ids, $taxonomy, $append, $old_tt_ids );