apply_filters( 'get_lastpostmodified', string|false $lastpostmodified, string $timezone, string $post_type )

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



(string|false) The most recent time that a post was modified, in 'Y-m-d H:i:s' format. False on failure.


(string) Location to use for getting the post modified date. See get_lastpostdate() for accepted $timezone values.


(string) The post type to check.

Top ↑


File: wp-includes/post.php

View on Trac

Top ↑


Version Description
5.5.0 Added the $post_type parameter.
2.3.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.