WP HOOKS
filtrod 2.3.0

get_lastpostmodified

Args 3Plik wp-includes/post.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the most recent time that a post on the site was modified.

Parametry

ParametrTypOpis
$lastpostmodifiedstring | falseThe most recent time that a post was modified, in 'Y-m-d H:i:s' format. False on failure.
$timezonestringLocation to use for getting the post modified date. See get_lastpostdate() for accepted <code>$timezone</code> values.
$post_typestringThe post type to check.

Wywołanie

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

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

Popularne w tej kategorii