Glossary Term
wp_add_object_terms()
3 tags
1 category
wp_add_object_terms() — Adds term(s) associated with a given object.
Inputs: $object_id (int): The ID of the object to which the terms will be added. $terms (string|int|array): The slug(s) or ID(s) of the term(s) to add. $taxonomy (array|string): Taxonomy name.
Returns array|WP_Error: Term taxonomy IDs of the affected terms.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
