W3cubDocs

/WordPress

apply_filters( 'get_post_time', string $time, string $format, bool $gmt )

Filters the localized time a post was written.

Parameters

$time

(string) The formatted time.

$format

(string) Format to use for retrieving the time the post was written. Accepts 'G', 'U', or PHP date format. Default 'U'.

$gmt

(bool) Whether to retrieve the GMT time. Default false.

Source

File: wp-includes/general-template.php

View on Trac

Changelog

Version Description
2.6.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_post_time