WP HOOKS
filtrod 2.0.0

the_modified_time

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

Opis — z kodu źródłowego

Filters the localized time a post was last modified, for display.

Parametry

ParametrTypOpis
$get_the_modified_timestring | falseThe formatted time or false if no post is found.
$formatstringFormat to use for retrieving the time the post was modified. Accepts 'G', 'U', or PHP date format.

Wywołanie

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

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

Popularne w tej kategorii