W3cubDocs

/WordPress

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

Filters the date a post was published.

Parameters

$the_date

(string) The formatted date.

$format

(string) PHP date format. Defaults to 'date_format' option if not specified.

$post

(int|WP_Post) The post object or ID.

Source

File: wp-includes/general-template.php

View on Trac

Changelog

Version Description
3.0.0 Introduced.

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