Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

wp_get_object_terms()

3 tags 1 category

wp_get_object_terms() — Retrieves the terms associated with the given object(s), in the supplied taxonomies.

Inputs: $object_ids (int|int[]): The ID(s) of the object(s) to retrieve. $taxonomies (string|string[]): The taxonomy names to retrieve terms from. $args (array|string): See WP_Term_Query::__construct() for supported arguments.

Returns WP_Term[]|int[]|string[]|string|WP_Error: Array of terms, a count thereof as a numeric string, or WP_Error if any of the taxonomies do not exist. See WP_Term_Query::get_terms() for more information.

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…