A WordPress-centric search engine for devs and theme authors



query ›

Since2.1.0
Deprecatedn/a
apply_filters( 'query', $query )
Parameters:
  • (string) $query Database query.
    Required: Yes
Defined at:
Codex:

Filters the database query.

Some queries are made before the plugins have been loaded, and thus cannot be filtered with this method.





Source

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