wp_add_object_terms Wordpress function


Description:

Add term(s) associated with a given object.


Syntax:


Arguments:

(int) $object_id The ID of the object to which the terms will be added.
(array|int|string) $terms The slug(s) or ID(s) of the term(s) to add.
(array|string) $taxonomy Taxonomy name.


Return Type:

(array|WP_Error) Affected Term IDs


Define At:

wp-includes/taxonomy.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/wp_add_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 ×