wp_set_object_terms Wordpress function


Description:

Create Term and Taxonomy Relationships.


Syntax:


Arguments:

(int) $object_id The object to relate to.
(array|int|string) $terms The slug or id of the term, will replace all existing related terms in this taxonomy.
(array|string) $taxonomy The context in which to relate the term to the object.
(bool) $append If false will delete difference of terms.


Return Type:

(array|WP_Error) Affected Term IDs


Define At:

wp-includes/taxonomy.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/wp_set_object_terms


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×