WordPress at Your Fingertips
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_9911', 10, 3 );
function filter_function_name_9911( $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.


Since 4.4.0 Introduced.

Where the hook is called

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

Where in WP core the hook is used WordPress

Usage not found.