Pre-filter the return value of get_lastpostmodified() before the query is run.
$lastpostmodifiedstring|false
$timezonestring
$timezone values.'server', 'blog', or 'gmt'.'server' uses the server’s internal timezone.'blog' uses the post_date field, which proxies to the timezone set for the site.'gmt' uses the post_date_gmt field.'server'.$post_typestring
$lastpostmodified = apply_filters( 'pre_get_lastpostmodified', false, $timezone, $post_type );
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_get_lastpostmodified