apply_filters( ‘query’, string $query )

In this article

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

$query = apply_filters( 'query', $query );

Changelog

VersionDescription
2.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.