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

In this article

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

VersionDescription
0.71Introduced.

User Contributed Notes

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