BP_Document_Query::__construct( array $query = array() )

Constructor.

Description

Parameters

$query

(Optional) Array of query clauses

Default value: array()

Source

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

82
83
84
85
86
87
88
public function __construct( $query = array() ) {
    if ( ! is_array( $query ) ) {
        return;
    }
 
    $this->queries = $this->sanitize_query( $query );
}

Changelog

Changelog
Version Description
BuddyBoss 1.4.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.