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



term_exists_default_query_args › WordPress Filter Hooks

Since6.0.0
Deprecatedn/a
apply_filters( 'term_exists_default_query_args', $defaults, $term, $taxonomy, $parent_term )
Parameters: (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
Defined at:
Codex:

Filters default query arguments for checking if a term exists.





Source

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