term_exists_default_query_args

term_exists_default_query_args

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.0.1

apply_filters('term_exists_default_query_args') is found 1 times:

  • /wp-includes/taxonomy.php line 1553
    	 *                             the search is against all taxonomies.
    	 * @param int|null   $parent   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 );
    
    	if ( is_int( $term ) ) {
    		if ( 0 === $term ) {
    			return 0;
    		}
    		$args  = wp_parse_args( array( 'include' => array( $term ) ), $defaults );