BP_XProfile_Query::is_first_order_clause( array $query )

Determine whether a query clause is first-order.


Description Description

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


Top ↑

Parameters Parameters

$query

(array) (Required) XProfile query arguments.


Top ↑

Return Return

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


Source Source

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

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


Top ↑

Changelog Changelog

Changelog
Version Description
2.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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