apply_filters( 'wp_date', string $date, string $format, int $timestamp, DateTimeZone $timezone )
- Since
- 5.3.0
Filters the date formatted based on the locale.
Parameters
$datestring- Formatted date string.
$formatstring- Format to display the date.
$timestampint- Unix timestamp.
$timezoneDateTimeZone- Timezone.
Fired at · 1
wp-includes/functions.php:318wp_date()
Source
* * @param string $date Formatted date string. * @param string $format Format to display the date. * @param int $timestamp Unix timestamp. * @param DateTimeZone $timezone Timezone. */ $date = apply_filters( 'wp_date', $date, $format, $timestamp, $timezone ); return $date;} /** * Determines if the date should be declined.History
Introduced in 5.3.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.0.4 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.