apply_filters( ‘get_terms’, array $terms, array|null $taxonomies, array $args, WP_Term_Query $term_query )

In this article

Filters the found terms.

Parameters

$termsarray
Array of found terms.
$taxonomiesarray|null
An array of taxonomies if known.
$argsarray
An array of get_terms() arguments.
More Arguments from get_terms( … $args )Array or string of arguments. See WP_Term_Query::__construct() for information on accepted arguments.
$term_queryWP_Term_Query
The WP_Term_Query object.

Source

return apply_filters( 'get_terms', $terms, $term_query->query_vars['taxonomy'], $term_query->query_vars, $term_query );

Changelog

VersionDescription
4.6.0Added the $term_query parameter.
2.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.