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.
Source
Changelog
Version | Description |
---|---|
5.3.0 | Introduced. |