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:
  • 4: .
  • 4: .
  • 4: .
  • 6: .

Description

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

Related Functions

wp_set_object_terms, wp_add_object_terms, wp_get_post_terms, wp_remove_object_terms, get_objects_in_term

Top Google Results

User discussions

wpseek mobile