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_3085', 10, 3 );
function filter_function_name_3085( $lastpostmodified, $timezone, $post_type ){
	// filter...

	return $lastpostmodified;
Date the last post was modified. 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.


Since 4.4.0 Introduced.

Where the hook is called

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

Where the hook is used (in WP core)

Usage not found!