Core Function
View Source on Trac ↗ get_lastpostmodified()
get_lastpostmodified( mixed $timezone = 'server', mixed $post_type = 'any' ) Gets the most recent time that a post on the site was modified.
Parameters 1 required
| Name / Type | Description |
|---|---|
| string | $timezone Optional. The timezone for the timestamp. See get_lastpostdate() for information on accepted values. Default 'server'. Required |
| $post_type string | Optional. The post type to check. Default 'any'. |
Return Value
(string)
The timestamp in 'Y-m-d H:i:s' format, or false on failure.
Function Information
Since Version
1.2.0
Source File
wp-includes/post.php
Advertisement