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

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



(string|false) 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.


(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
4.4.0 Introduced.

Top ↑

User Contributed Notes

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