WP_Meta_Query::is_first_order_clause( array $query ): bool

Determine whether a query clause is first-order.


Description

A first-order meta query clause is one that has either a ‘key’ or a ‘value’ array key.


Top ↑

Parameters

$query array Required
Meta query arguments.

Top ↑

Return

bool Whether the query clause is a first-order clause.


Top ↑

Source

File: wp-includes/class-wp-meta-query.php. View all references

protected function is_first_order_clause( $query ) {
	return isset( $query['key'] ) || isset( $query['value'] );
}


Top ↑

Changelog

Changelog
Version Description
4.1.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.