W3cubDocs

/WordPress

apply_filters( ‘get_object_terms’, WP_Term[]|int[]|string[]|string $terms, int[] $object_ids, string[] $taxonomies, array $args )

Filters the terms for a given object or objects.

Parameters

$termsWP_Term[]|int[]|string[]|string
Array of terms or a count thereof as a numeric string.
$object_idsint[]
Array of object IDs for which terms were retrieved.
$taxonomiesstring[]
Array of taxonomy names from which terms were retrieved.
$argsarray
Array of arguments for retrieving terms for the given object(s). See wp_get_object_terms() for details.
More Arguments from wp_get_object_terms( … $args )See WP_Term_Query::__construct() for supported arguments.

Source

$terms = apply_filters( 'get_object_terms', $terms, $object_ids, $taxonomies, $args );

Changelog

Version Description
4.2.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_object_terms