WordPress开发者和主题制作者的搜索引擎



get_terms ›

Since4.6.0
已弃用n/a
apply_filters( 'get_terms', $terms, $term_query->query_vars['taxonomy'], $term_query->query_vars, $term_query )
参数: (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
定义在:
文档:

Filters the found terms.





源码

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