Filters the localized time of the post.
Parameters
$timestring|int- Formatted date string or Unix timestamp if
$formatis'U'or'G'. $formatstring- Format to use for retrieving the date of the post.
Accepts'G','U', or PHP date format. $gmtbool- Whether to retrieve the GMT time.
Source
return apply_filters( 'get_post_time', $time, $format, $gmt );
Changelog
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.