wp_add_object_terms ( $object_id, $terms, $taxonomy )
- (int) object_id The ID of the object to which the terms will be added.
- (string|int|array) terms The slug(s) or ID(s) of the term(s) to add.
- (array|string) taxonomy Taxonomy name.
- (array|WP_Error) Term taxonomy IDs of the affected terms.
- Introduced in WordPress: 3.6.0
- Deprecated in WordPress: —
Add term(s) associated with a given object.