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 |
|---|---|
| 161 | </fieldset> |
| 162 | </td> |
| 163 | </tr> |
| 164 | <tr> |
| 165 | <th scope="row"><?php _e('Time Format') ?></th> |
| 166 | <td> |
| 167 | <fieldset><legend class="hidden"><?php _e('Time Format') ?></legend> |
| 168 | <?php |
| 169 | |
| 170 | $time_formats = apply_filters( 'time_formats', array( |
| 171 | __('g:i a'), |
| 172 | 'g:i A', |
| 173 | 'H:i', |
| 174 | ) ); |
| 175 | |
| 176 | $custom = TRUE; |
| 177 | |
| 178 | foreach ( $time_formats as $format ) { |
| 179 | echo "\t<label title='" . attribute_escape($format) . "'><input type='radio' name='time_format' value='" . attribute_escape($format) . "'"; |