filtrod 3.5.0
wp_checkdate
Opis — z kodu źródłowego
Filters whether the given date is valid for the Gregorian calendar.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$checkdate | bool | Whether the given date is valid. |
$source_date | string | Date to check. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_checkdate', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_checkdate', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii