WP_Meta_Query::is_first_order_clause

SummerySummery

Determine whether a query clause is first-order.

Syntax

WP_Meta_Query::is_first_order_clause( array $query )

DescriptionDescription

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

ParametersParameters

$query

(array) (Required) Meta query arguments.

ReturnReturn

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

SourceSource

File: wp-includes/class-wp-meta-query.php


			

ChangelogChangelog

Changelog
Version Description
4.1.0 Introduced.
Scroll to Top