WP HOOKS
filtrod 0.71

the_date

Args 4Plik wp-includes/general-template.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the date of the post, for display.

Parametry

ParametrTypOpis
$the_datestringThe formatted date string.
$formatstringPHP date format.
$beforestringHTML output before the date.
$afterstringHTML output after the date.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'the_date', 'twoja_funkcja', 10, 4 );

function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
	// Twój kod
}

Popularne w tej kategorii