the_date WordPress Filter Hook
The the_date WordPress hook is used to display the date on a post. This hook is typically used in the header or footer of a template.
apply_filters( 'the_date', string $the_date , string $format , string $before , string $after ) #
Filters the date a post was published for display.
Parameters
- $the_date
(string)The formatted date string.
- $format
(string)PHP date format.
- $before
(string)HTML output before the date.
- $after
(string)HTML output after the date.
Source
Changelog
Version | Description |
---|---|
0.71 | Introduced. |