Filters the terms for a given object or objects.
The $taxonomies parameter passed to this filter is formatted as a SQL fragment. The ‘get_object_terms’ filter is recommended as an alternative.
$termsWP_Term[]|int[]|string[]|string
$object_idsstring
$taxonomiesstring
$argsarray
return apply_filters( 'wp_get_object_terms', $terms, $object_ids, $taxonomies, $args );
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_get_object_terms