WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
208 | * @since 2.8.0 |
209 | * |
210 | * @param string $date Formatted date string. |
211 | * @param string $format Format to display the date. |
212 | * @param int $timestamp A sum of Unix timestamp and timezone offset in seconds. |
213 | * Might be without offset if input omitted timestamp but requested GMT. |
214 | * @param bool $gmt Whether to use GMT timezone. Only applies if timestamp was not provided. |
215 | * Default false. |
216 | */ |
217 | $date = apply_filters( 'date_i18n', $date, $format, $timestamp, $gmt ); |
218 |
|
219 | return $date; |
220 | } |
221 |
|
222 | /** |
223 | * Retrieves the date, in localized format. |
224 | * |
225 | * This is a newer function, intended to replace `date_i18n()` without legacy quirks in it. |
226 | * |