BP_XProfile_Query::is_first_order_clause( array $query )

Determine whether a query clause is first-order.

Description

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

Parameters

$query

(Required) XProfile query arguments.

Return

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

Source

File: bp-xprofile/classes/class-bp-xprofile-query.php

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

Changelog

Changelog
Version Description
BuddyPress 2.2.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.