WP HOOKS
filtrod 0.71

the_time

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

Opis — z kodu źródłowego

Filters the time of the post, for display.

Parametry

ParametrTypOpis
$get_the_timestringThe formatted time.
$formatstringFormat to use for retrieving the time the post was written. Accepts 'G', 'U', or PHP date format.

Wywołanie

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

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

Popularne w tej kategorii