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

Filters the localized time a post was written.


Parameters

$time

Formatted date string or Unix timestamp if $format is 'U' or 'G'.

$format

Format to use for retrieving the time the post was written.<br> Accepts 'G', 'U', or PHP date format.

$gmt

Whether to retrieve the GMT time.


Source

File: wp-includes/general-template.php

View on GitHub



Changelog

Changelog
Version Description
2.6.0 Introduced.