wp_date WordPress Filter Hook

The wp_date hook is used to display the date on a WordPress site. This hook is used in the header.php file.

apply_filters( 'wp_date', string $date, string $format, int $timestamp, DateTimeZone $timezone ) #

Filters the date formatted based on the locale.


Parameters

$date

(string)Formatted date string.

$format

(string)Format to display the date.

$timestamp

(int)Unix timestamp.

$timezone

(DateTimeZone)Timezone.


Top ↑

Source

File: wp-includes/functions.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.3.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