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

Filters default query arguments for checking if a term exists.


Parameters

$defaults

An array of arguments passed to get_terms().

$term

The term to check. Accepts term ID, slug, or name.

$taxonomy

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

$parent_term

ID of parent term under which to confine the exists search.<br> Null indicates the search is unconfined.


Source

File: wp-includes/taxonomy.php

View on GitHub


Changelog

Changelog
Version Description
6.0.0 Introduced.