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



term_exists_default_query_args › WordPress过滤钩子

Since6.0.0
已弃用n/a
apply_filters( 'term_exists_default_query_args', $defaults, $term, $taxonomy, $parent_term )
参数: (4)
  • (array) $defaults An array of arguments passed to get_terms().
    Required: Yes
  • (int|string) $term The term to check. Accepts term ID, slug, or name.
    Required: Yes
  • (string) $taxonomy The taxonomy name to use. An empty string indicates the search is against all taxonomies.
    Required: Yes
  • (int|null) $parent_term ID of parent term under which to confine the exists search. Null indicates the search is unconfined.
    Required: Yes
定义在:
文档:

Filters default query arguments for checking if a term exists.





源码

$defaults = apply_filters( 'term_exists_default_query_args', $defaults, $term, $taxonomy, $parent_term );