Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: time_formats

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
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
170      $time_formats = apply_filters( 'time_formats', array(
171           __('g:i a'),
172           'g:i A',
173           'H:i',
174      ) );
176      $custom = TRUE;
178      foreach ( $time_formats as $format ) {
179           echo "\t<label title='" . attribute_escape($format) . "'><input type='radio' name='time_format' value='" . attribute_escape($format) . "'";