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 |
---|---|
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 ); |
216 |
|
217 | return $date; |
218 | } |
219 |
|
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 | * |