BP_Media_Query::__construct( array $query = array() )
Constructor.
Description
Parameters
- $query
-
(Optional) Array of query clauses.
- (array)
- 'column'
(string) Required. The column to query against. Basically, any DB column in the main 'wp_bp_media' table. - 'value'
(string) Required. Value to filter by. - 'compare'
(string) Optional. The comparison operator. Default '='. Accepts '=', '!=', '>', '>=', '<', '<=', 'IN', 'NOT IN', 'LIKE', 'NOT LIKE', BETWEEN', 'NOT BETWEEN', 'REGEXP', 'NOT REGEXP', 'RLIKE'. - 'relation'
(string) Optional. The boolean relationship between the media queries. Accepts 'OR', 'AND'. Default 'AND'. - (array) Optional. Another fully-formed media query. See parameters above. } }
- 'column'
Default value: array()
- (array)
Source
File: bp-media/classes/class-bp-media-query.php
public function __construct( $query = array() ) { if ( ! is_array( $query ) ) { return; } $this->queries = $this->sanitize_query( $query ); }
Changelog
Version | Description |
---|---|
BuddyBoss 1.1.9 | 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.