WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about pre_get_lastpostmodified

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/post.php apply_filters 7247 /**
* Pre-filter the return value of get_lastpostmodified() before the query is run.
*
* @since 4.4.0
*
* @param string|false $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.
* @param string $timezone Location to use for getting the post modified date.
* See get_lastpostdate() for accepted `$timezone` values.
* @param string $post_type The post type to check.
*/

Hook Parameters

Parameter Type Name Description
string|false $lastpostmodified The most recent time that a post was modified,
string $timezone Location to use for getting the post modified date.
string $post_type The post type to check.