Filters the database query.
Some queries are made before the plugins have been loaded, and thus cannot be filtered with this method.
$querystring
$query = apply_filters( 'query', $query );
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/query