WordPress at Your Fingertips
filter is not described

get_lastpostmodified filter-hook . WP 2.3.0

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


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

	return $lastpostmodified;
The most recent time that a post was modified, in 'Y-m-d H:i:s' format. False on failure.
Location to use for getting the post modified date. See get_lastpostdate() for accepted $timezone values.
The post type to check.


Since 2.3.0 Introduced.
Since 5.5.0 Added the $post_type parameter.

Where the hook is called

wp-includes/post.php 7058
return apply_filters( 'get_lastpostmodified', $lastpostmodified, $timezone, $post_type );

Where in WP core the hook is used WordPress

Usage not found.