wordpress / latest / hooks / get_the_date.html

apply_filters( 'get_the_date', string|int $the_date, string $format, WP_Post $post )

Filters the date a post was published.

Parameters

$the_date string|int
Formatted date string or Unix timestamp if $format is 'U' or 'G'.
$format string
PHP date format.
$post WP_Post
The post object.

Source

File: wp-includes/general-template.php. View all references

return apply_filters( 'get_the_date', $the_date, $format, $post );

Used By

Used By Description

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