WordPress at a glance
filter is not described

pre_get_lastpostmodified filter-hook . WP 4.4.0

Pre-filter the return value of get_lastpostmodified() before the query is run.


add_filter( 'pre_get_lastpostmodified', 'filter_function_name_8520', 10, 3 );
function filter_function_name_8520( $lastpostmodified, $timezone, $post_type ){
	// filter...

	return $lastpostmodified;
The most recent time that a post was modified, in 'Y-m-d H:i:s' format, or false. Returning anything other than false will short-circuit the function.
Location to use for getting the post modified date. See get_lastpostdate() for accepted $timezone values.
The post type to check.

Список изменений

С версии 4.4.0 Введена.

Где вызывается хук

wp-includes/post.php 6669
$lastpostmodified = apply_filters( 'pre_get_lastpostmodified', false, $timezone, $post_type );

Где используется хук в ядре WP

Использование не найдено.