BP_Recursive_Query::get_sql_for_clause( array $clause, array $parent_query )

Generate JOIN and WHERE clauses for a first-order clause.

Description

Must be overridden in a subclass.

Parameters

$clause

(Required) Array of arguments belonging to the clause.

$parent_query

(Required) Parent query to which the clause belongs.

Return

(array)

  • 'join'
    (array) Array of subclauses for the JOIN statement.
  • 'where'
    (array) Array of subclauses for the WHERE statement.

Source

File: bp-core/classes/class-bp-recursive-query.php

	abstract protected function get_sql_for_clause( $clause, $parent_query );

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.