On this page
apply_filters( 'get_post_modified_time', string|int $time, string $format, bool $gmt )
Filters the localized time a post was last modified.
Parameters
$timestring|int-
Formatted date string or Unix timestamp if
$formatis'U'or'G'. $formatstring-
Format to use for retrieving the time the post was modified.
Accepts'G','U', or PHP date format. Default'U'. $gmtbool-
Whether to retrieve the GMT time. Default false.
Source
File: wp-includes/general-template.php. View all references
return apply_filters( 'get_post_modified_time', $time, $format, $gmt );
Related
Used By
| Used By | Description |
|---|---|
| get_post_modified_time() wp-includes/general-template.php | Retrieves the time at which the post was last modified. |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_post_modified_time