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.


Top ↑

Source

File: wp-includes/general-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More