W3cubDocs

/WordPress

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. Defaults to 'date_format' option if not specified.

$before

(string) HTML output before the date.

$after

(string) HTML output after the date.

Source

File: wp-includes/general-template.php

View on Trac

Changelog

Version Description
0.71 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/the_date