filtrod 2.8.0
date_i18n
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 | A sum of Unix timestamp and timezone offset in seconds. Might be without offset if input omitted timestamp but requested GMT. |
$gmt | bool | Whether to use GMT timezone. Only applies if timestamp was not provided. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'date_i18n', '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( 'date_i18n', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii