Uma área de pesquisa sobre o WordPress para devs e autores do tema



query ›

Desde2.1.0
Obsoleton/a
apply_filters( 'query', $query )
Parâmetros:
  • (string) $query Database query.
    Required: Yes
Definido em:
Codex:

Filters the database query.

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





Fonte

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