W3cubDocs

/WordPress

apply_filters( ‘the_time’, string $get_the_time, string $format )

Filters the time a post was written for display.

Parameters

$get_the_timestring
The formatted time.
$formatstring
Format to use for retrieving the time the post was written. Accepts 'G', 'U', or PHP date format.

Source

echo apply_filters( 'the_time', get_the_time( $format ), $format );

Changelog

Version Description
0.71 Introduced.

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