get_the_date WordPress Filter Hook
The get_the_date WordPress hook allows you to change the way the date is displayed on your website. This is useful if you want to change the format of the date or if you want to display a different date than the one that is set by default.
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
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |