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

Filters the localized time a post was written.


$time string|int
Formatted date string or Unix timestamp if $format is 'U' or 'G'.
$format string
Format to use for retrieving the time the post was written.
Accepts 'G', 'U', or PHP date format.
$gmt bool
Whether to retrieve the GMT time.

Top ↑


File: wp-includes/general-template.php. View all references

return apply_filters( 'get_post_time', $time, $format, $gmt );

Top ↑


Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.