WP HOOKS
filtrod 2.8.0

date_i18n

Args 4Plik wp-includes/functions.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the date formatted based on the locale.

Parametry

ParametrTypOpis
$datestringFormatted date string.
$formatstringFormat to display the date.
$timestampintA sum of Unix timestamp and timezone offset in seconds. Might be without offset if input omitted timestamp but requested GMT.
$gmtboolWhether 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
}

Popularne w tej kategorii