apply_filters( 'term_exists_default_query_args', array $defaults, int|string $term, string $taxonomy, int|null $parent )

Filters default query arguments for checking if a term exists.



(array) An array of arguments passed to get_terms().


(int|string) The term to check. Accepts term ID, slug, or name.


(string) The taxonomy name to use. An empty string indicates the search is against all taxonomies.


(int|null) ID of parent term under which to confine the exists search. Null indicates the search is unconfined.

Top ↑


File: wp-includes/taxonomy.php

View on Trac

Top ↑


Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.