Document the 'query' filter in wp-db.

props natejacobs.
see #25229.


git-svn-id: https://develop.svn.wordpress.org/trunk@25284 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2013-09-06 17:07:00 +00:00
parent 595284f699
commit 8a0ac73f60
+8 -2
View File
@@ -1180,8 +1180,14 @@ class wpdb {
function query( $query ) {
if ( ! $this->ready )
return false;
// some queries are made before the plugins have been loaded, and thus cannot be filtered with this method
/**
* Filter the database query.
*
* Some queries are made before the plugins have been loaded, and thus cannot be filtered with this method.
*
* @since 2.1.0
* @param string $query Database query.
*/
$query = apply_filters( 'query', $query );
$return_val = 0;