wp_get_object_terms ( $object_ids, $taxonomies, $args = array() )

  • (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.
  • (array|WP_Error) The requested term data or empty array if no terms found. WP_Error if any of the taxonomies don't exist.
Defined at:
Change Log:
  • 4: .
  • 4: .
  • 4: .


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

Related Functions

wp_set_object_terms, wp_add_object_terms, wp_remove_object_terms, wp_get_post_terms, get_objects_in_term

Top Google Results

User discussions

wpseek mobile