apply_filters( 'wp_get_object_terms', WP_Term[] $terms, string $object_ids, string $taxonomies, array $args )
Filters the terms for a given object or objects.
Description
The $taxonomies
parameter passed to this filter is formatted as a SQL fragment. The ‘get_object_terms’ filter is recommended as an alternative.
Parameters
- $terms
-
(WP_Term[]) Array of terms for the given object or objects.
- $object_ids
-
(string) Comma separated list of object IDs for which terms were retrieved.
- $taxonomies
-
(string) SQL fragment of taxonomy names from which terms were retrieved.
- $args
-
(array) Array of arguments for retrieving terms for the given object(s). See wp_get_object_terms() for details.
Source
File: wp-includes/taxonomy.php
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_get_object_terms