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

$query

Database query.


Source

File: wp-includes/class-wpdb.php

View on GitHub



Changelog

Changelog
Version Description
2.1.0 Introduced.