wp_get_object_terms


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

Parameters:
  • (int|array) $object_ids The ID(s) of the object(s) to retrieve.
  • (string|array) $taxonomies The taxonomies to retrieve terms from.
  • (array|string) $args See WP_Term_Query::__construct() for supported arguments.
Returns:
  • (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: .

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