On this page
apply_filters( 'the_date', string $the_date, string $format, string $before, string $after )
Filters the date a post was published for display.
Parameters
$the_datestring-
The formatted date string.
$formatstring-
PHP date format.
$beforestring-
HTML output before the date.
$afterstring-
HTML output after the date.
Source
File: wp-includes/general-template.php. View all references
$the_date = apply_filters( 'the_date', $the_date, $format, $before, $after );
Related
Used By
| Used By | Description |
|---|---|
| the_date() wp-includes/general-template.php | Displays or retrieves the date the current post was written (once per date) |
Changelog
| Version | Description |
|---|---|
| 0.71 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/the_date