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
197       * @since 2.8.0
198       *
199       * @param string $date      Formatted date string.
200       * @param string $format    Format to display the date.
201       * @param int    $timestamp A sum of Unix timestamp and timezone offset in seconds.
202       *                          Might be without offset if input omitted timestamp but requested GMT.
203       * @param bool   $gmt       Whether to use GMT timezone. Only applies if timestamp was not provided.
204       *                          Default false.
205       */
206      $date = apply_filters( 'date_i18n', $date, $format, $timestamp, $gmt );
207
208      return $date;
209 }
210
211 /**
212  * Retrieves the date, in localized format.
213  *
214  * This is a newer function, intended to replace `date_i18n()` without legacy quirks in it.
215  *