filtrod 2.1.0
query
Opis — z kodu źródłowego
Filters the database query.
Some queries are made before the plugins have been loaded, and thus cannot be filtered with this method.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$query | string | Database query. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'query', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'query', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii