term_exists_default_query_args

过滤钩子
apply_filters( 'term_exists_default_query_args', $defaults, $term, $taxonomy, $parent )
参数
  • (array) $defaults An array of arguments passed to get_terms().
    Required:
  • (int|string) $term The term to check. Accepts term ID, slug, or name.
    Required:
  • (string) $taxonomy The taxonomy name to use. An empty string indicates the search is against all taxonomies.
    Required:
  • (int|null) $parent ID of parent term under which to confine the exists search. Null indicates the search is unconfined.
    Required:
定义位置
相关勾子
users_list_table_query_argsms_sites_list_table_query_argstwentyfourteen_list_authors_query_argswp_sitemaps_posts_query_argscomments_list_table_query_args
相关方法
register_default_headersunregister_default_headersrest_api_default_filtersrest_validate_request_argwp_removable_query_argsremove_query_arg
引入
6.0.0
弃用
-

term_exists_default_query_args是一个过滤器,允许开发者修改term_exists函数中使用的默认查询参数。term_exists函数用于检查WordPress数据库中的术语是否存在。

筛选默认查询参数以检查是否存在术语。

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

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-14 16:36:35

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: