term_exists_default_query_args

term_exists_default_query_args

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.9

apply_filters('term_exists_default_query_args') is found 1 times:

  • /wp-includes/taxonomy.php line 1631
    	 *                                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.
    	 */
    	$defaults = apply_filters( 'term_exists_default_query_args', $defaults, $term, $taxonomy, $parent_term );
    
    	if ( ! empty( $taxonomy ) && is_numeric( $parent_term ) ) {
    		$defaults['parent'] = (int) $parent_term;
    	}
    
    	if ( is_int( $term ) ) {