2020-05-01 / 4174阅 / 悠然
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>
(int)
(Required)
Term object ID, for example a post, comment, or user ID.
(string)
(Required)
Taxonomy name.
(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.