wpseek.com
A WordPress-centric search engine for devs and theme authors



get_terms › WordPress Filter Hooks

Since4.6.0
Deprecatedn/a
apply_filters( 'get_terms', $terms, $term_query->query_vars['taxonomy'], $term_query->query_vars, $term_query )
Parameters: (4)
  • (array) $terms Array of found terms.
    Required: Yes
  • (array|null) $taxonomies An array of taxonomies if known.
    Required: Yes
  • (array) $args An array of get_terms() arguments.
    Required: Yes
  • (WP_Term_Query) $term_query The WP_Term_Query object.
    Required: Yes
Defined at:
Codex:

Filters the found terms.





Source

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