On this page
apply_filters( 'get_the_date', string|int $the_date, string $format, WP_Post $post )
Filters the date a post was published.
Parameters
$the_datestring|int-
Formatted date string or Unix timestamp if
$formatis'U'or'G'. $formatstring-
PHP date format.
$postWP_Post-
The post object.
Source
File: wp-includes/general-template.php. View all references
return apply_filters( 'get_the_date', $the_date, $format, $post );
Related
Used By
| Used By | Description |
|---|---|
| get_the_date() wp-includes/general-template.php | Retrieves the date on which the post was written. |
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_the_date