WP HOOKS
filtrod 2.0.0

get_the_modified_time

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

Opis — z kodu źródłowego

Filters the localized time a post was last modified.

Parametry

ParametrTypOpis
$the_timestring | int | 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.
$post\WP_Post | nullWP_Post object or null if no post is found.

Wywołanie

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

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

Popularne w tej kategorii