filtrod 5.3.0
wp_date
Opis — z kodu źródłowego
Filters the date formatted based on the locale.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$date | string | Formatted date string. |
$format | string | Format to display the date. |
$timestamp | int | Unix timestamp. |
$timezone | \DateTimeZone | Timezone. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_date', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_date', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii