Description
Filters the terms for a given object or objects. The `$taxonomies` parameter passed to this filter is formatted as a SQL fragment. The {@see 'get_object_terms'} filter is recommended as an alternative.
Occurrences
Filename | Line Number |
---|---|
wp-includes/taxonomy.php | 2356 |
Parameters
Type | Name | Description |
---|---|---|
WP_Term[]|int[]|string[]|string | $terms | Array of terms or a count thereof as a numeric string. |
string | $object_ids | Comma separated list of object IDs for which terms were retrieved. |
string | $taxonomies | SQL fragment of taxonomy names from which terms were retrieved. |
array | $args | Array of arguments for retrieving terms for the given object(s). See wp_get_object_terms() for details. |
PHP Doc
/**
* Filters the terms for a given object or objects.
*
* The `$taxonomies` parameter passed to this filter is formatted as a SQL fragment. The
* {@see 'get_object_terms'} filter is recommended as an alternative.
*
* @since 2.8.0
*
* @param WP_Term[]|int[]|string[]|string $terms Array of terms or a count thereof as a numeric string.
* @param string $object_ids Comma separated list of object IDs for which terms were retrieved.
* @param string $taxonomies SQL fragment of taxonomy names from which terms were retrieved.
* @param array $args Array of arguments for retrieving terms for the given
* object(s). See wp_get_object_terms() for details.
*/