Filters the time a post was written for display.
$get_the_timestring
$formatstring
'G', 'U', or PHP date format.echo apply_filters( 'the_time', get_the_time( $format ), $format );
| Version | Description |
|---|---|
| 0.71 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/the_time