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 |
|---|---|
| 3337 | $support = false; |
| 3338 | if ( |
| 3339 | function_exists( 'date_default_timezone_set' ) && |
| 3340 | function_exists( 'timezone_identifiers_list' ) && |
| 3341 | function_exists( 'timezone_open' ) && |
| 3342 | function_exists( 'timezone_offset_get' ) |
| 3343 | ) { |
| 3344 | $support = true; |
| 3345 | } |
| 3346 | return apply_filters( 'timezone_support', $support ); |
| 3347 | } |
| 3348 | |
| 3349 | function _wp_timezone_choice_usort_callback( $a, $b ) { |
| 3350 | // Don't use translated versions of Etc |
| 3351 | if ( 'Etc' === $a['continent'] && 'Etc' === $b['continent'] ) { |
| 3352 | // Make the order of these more like the old dropdown |
| 3353 | if ( 'GMT+' === substr( $a['city'], 0, 4 ) && 'GMT+' === substr( $b['city'], 0, 4 ) ) { |
| 3354 | return -1 * ( strnatcasecmp( $a['city'], $b['city'] ) ); |
| 3355 | } |