Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/general-template.php | apply_filters | 2765 | /** * Filters the localized time a post was written. * * @since 2.6.0 * * @param string|int $time Formatted date string or Unix timestamp if `$format` is 'U' or 'G'. * @param string $format Format to use for retrieving the time the post was written. * Accepts 'G', 'U', or PHP date format. * @param bool $gmt Whether to retrieve the GMT time. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
string|int | $time | Formatted date string or Unix timestamp if `$format` is 'U' or 'G'. |
string | $format | Format to use for retrieving the time the post was written. |
bool | $gmt | Whether to retrieve the GMT time. |