On this page
apply_filters( 'get_the_time', string|int $the_time, string $format, WP_Post $post )
Filters the time a post was written.
Parameters
$the_timestring|int-
Formatted date string or Unix timestamp if
$formatis'U'or'G'. $formatstring-
Format to use for retrieving the time the post was written. Accepts
'G','U', or PHP date format. $postWP_Post-
Post object.
Source
File: wp-includes/general-template.php. View all references
return apply_filters( 'get_the_time', $the_time, $format, $post );
Related
Used By
| Used By | Description |
|---|---|
| get_the_time() wp-includes/general-template.php | Retrieves the time at which the post was written. |
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_the_time