Description
Filters default query arguments for checking if a term exists.
Occurrences
Filename | Line Number |
---|---|
wp-includes/taxonomy.php | 1613 |
Parameters
Type | Name | Description |
---|---|---|
array | $defaults | An array of arguments passed to get_terms(). |
int|string | $term | The term to check. Accepts term ID, slug, or name. |
string | $taxonomy | The taxonomy name to use. An empty string indicates the search is against all taxonomies. |
int|null | $parent_term | ID of parent term under which to confine the exists search. Null indicates the search is unconfined. |
PHP Doc
/**
* Filters default query arguments for checking if a term exists.
*
* @since 6.0.0
*
* @param array $defaults An array of arguments passed to get_terms().
* @param int|string $term The term to check. Accepts term ID, slug, or name.
* @param string $taxonomy The taxonomy name to use. An empty string indicates
* the search is against all taxonomies.
* @param int|null $parent_term ID of parent term under which to confine the exists search.
* Null indicates the search is unconfined.
*/