wordpress / latest / hooks / date_i18n.html

apply_filters( 'date_i18n', string $date, string $format, int $timestamp, bool $gmt )

Filters the date formatted based on the locale.

Parameters

$date string
Formatted date string.
$format string
Format to display the date.
$timestamp int
A sum of Unix timestamp and timezone offset in seconds.
Might be without offset if input omitted timestamp but requested GMT.
$gmt bool
Whether to use GMT timezone. Only applies if timestamp was not provided.
Default false.

Source

File: wp-includes/functions.php. View all references

$date = apply_filters( 'date_i18n', $date, $format, $timestamp, $gmt );

Used By

Used By Description

Changelog

Version Description
2.8.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/date_i18n