A WordPress-centric search engine for devs and theme authors



get_terms ›

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) $taxonomies An array of taxonomies.
    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 );