Filter hook 'date_i18n'

in WP Core File wp-includes/functions.php at line 216

Description

Filters the date formatted based on the locale.

Occurrences

Filename Line Number
wp-includes/functions.php 216

Parameters

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

PHP Doc

/**
	 * Filters the date formatted based on the locale.
	 *
	 * @since 2.8.0
	 *
	 * @param string $date      Formatted date string.
	 * @param string $format    Format to display the date.
	 * @param int    $timestamp A sum of Unix timestamp and timezone offset in seconds.
	 *                          Might be without offset if input omitted timestamp but requested GMT.
	 * @param bool   $gmt       Whether to use GMT timezone. Only applies if timestamp was not provided.
	 *                          Default false.
	 */