filtrod 3.7.0
get_date_sql
Opis — z kodu źródłowego
Filters the date query WHERE clause.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$where | string | WHERE clause of the date query. |
$query | \WP_Date_Query | The WP_Date_Query instance. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_date_sql', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_date_sql', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii