wp_get_object_terms
wp_get_object_terms ( $object_ids, $taxonomies, $args = array() )
Parameters:- (int|int[]) object_ids The ID(s) of the object(s) to retrieve.
- (string|string[]) taxonomies The taxonomy names to retrieve terms from.
- (array|string) args 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.
Defined at:Change Log: - Introduced in WordPress: 2.3.0
- Deprecated in WordPress: —
Description
Retrieves the terms associated with the given object(s), in the supplied taxonomies.