Skip to content

Commit

Permalink
WHERE statement filter added.
Browse files Browse the repository at this point in the history
  • Loading branch information
kidunot89 committed Aug 20, 2020
1 parent cbfc6da commit 06d8ddf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions classes/class-query.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,16 @@ public function query( $args ) {

$select = implode( ', ', $selects );

/**
* Filters query WHERE statement as an alternative to filtering
* the $query using the hook below.
*
* @param string $where WHERE statement.
*
* @return string
*/
$where = apply_filters( 'wp_stream_db_query', $where );

/**
* BUILD THE FINAL QUERY
*/
Expand Down

0 comments on commit 06d8ddf

Please sign in to comment.