WordPress at a glance
function is not described

WP_Date_Query::is_first_order_clause() protected WP 4.1.0

Determine whether this is a first-order clause.

Checks to see if the current clause has any time-related keys. If so, it's first-order.

{} It's a method of the class: WP_Date_Query{}

No Hooks.

Return

true/false. True if this is a first-order clause.

Usage

// protected - for code of main (parent) or child class
$result = $this->is_first_order_clause( $query );
$query(array) (required)
Query clause.

Changelog

Since 4.1.0 Introduced.

Code of WP_Date_Query::is_first_order_clause() WP 5.5.1

<?php
protected function is_first_order_clause( $query ) {
	$time_keys = array_intersect( $this->time_keys, array_keys( $query ) );
	return ! empty( $time_keys );
}