Glossary Term
get_object_term_cache()
get_object_term_cache() — Retrieves the cached term objects for the given object ID. Upstream functions (like get_the_terms() and is_object_in_term()) are responsible for populating the object-term relationship cache. The current function only fetches relationship data that is already in the cache.
Inputs: $id (int): Term object ID, for example a post, comment, or user ID. $taxonomy (string): Taxonomy name.
Returns bool|WP_Term[]|WP_Error: Array of WP_Term objects, if cached. False if cache is empty for $taxonomy and $id. WP_Error if get_term() returns an error object for any term.
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…
