wp_date filter-hook . WP 5.3.0
Filters the date formatted based on the locale.
Usage
add_filter( 'wp_date', 'filter_function_name_9392', 10, 4 ); function filter_function_name_9392( $date, $format, $timestamp, $timezone ){ // filter... return $date; }
- $date(string)
- Formatted date string.
- $format(string)
- Format to display the date.
- $timestamp(int)
- Unix timestamp.
- $timezone(DateTimeZone)
- Timezone.
Changelog
Since 5.3.0 | Introduced. |
Where the hook is called
wp_date
wp-includes/functions.php 302
$date = apply_filters( 'wp_date', $date, $format, $timestamp, $timezone );