On this page
apply_filters( 'query', string $query )
Filters the database query.
Description
Some queries are made before the plugins have been loaded, and thus cannot be filtered with this method.
Parameters
$querystring-
Database query.
Source
File: wp-includes/class-wpdb.php. View all references
$query = apply_filters( 'query', $query );
Related
Used By
| Used By | Description |
|---|---|
| wpdb::query() wp-includes/class-wpdb.php | Performs a database query, using current database connection. |
Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/query