diff --git a/classes/class-query.php b/classes/class-query.php index 6a612fe9f..92ddcfe07 100644 --- a/classes/class-query.php +++ b/classes/class-query.php @@ -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', $where ); + /** * BUILD THE FINAL QUERY */