Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: date_i18n

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
206       * @since 2.8.0
207       *
208       * @param string $date      Formatted date string.
209       * @param string $format    Format to display the date.
210       * @param int    $timestamp A sum of Unix timestamp and timezone offset in seconds.
211       *                          Might be without offset if input omitted timestamp but requested GMT.
212       * @param bool   $gmt       Whether to use GMT timezone. Only applies if timestamp was not provided.
213       *                          Default false.
214       */
215      $date = apply_filters( 'date_i18n', $date, $format, $timestamp, $gmt );
217      return $date;
218 }
220 /**
221  * Retrieves the date, in localized format.
222  *
223  * This is a newer function, intended to replace `date_i18n()` without legacy quirks in it.
224  *