On this page
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
File: wp-includes/general-template.php. View all references
echo apply_filters( 'the_time', get_the_time( $format ), $format );
Related
Used By
| Used By | Description |
|---|---|
| the_time() wp-includes/general-template.php | Displays the time at which the post was written. |
Changelog
| Version | Description |
|---|---|
| 0.71 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/the_time