Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: show_password_fields

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
332      </tr>
333      <tr class="form-field">
334           <th scope="row"><label for="last_name"><?php _e('Last Name') ?> </label></th>
335           <td><input name="last_name" type="text" id="last_name" value="<?php echo esc_attr($new_user_lastname); ?>" /></td>
336      </tr>
337      <tr class="form-field">
338           <th scope="row"><label for="url"><?php _e('Website') ?></label></th>
339           <td><input name="url" type="text" id="url" class="code" value="<?php echo esc_attr($new_user_uri); ?>" /></td>
340      </tr>
341 <?php if ( apply_filters('show_password_fields', true) ) : ?>
342      <tr class="form-field form-required">
343           <th scope="row"><label for="pass1"><?php _e('Password'); ?> <span class="description"><?php /* translators: password input field */_e('(required)'); ?></span></label></th>
344           <td>
345                <input class="hidden" value=" " /><!-- #24364 workaround -->
346                <input name="pass1" type="password" id="pass1" autocomplete="off" />
347           </td>
348      </tr>
349      <tr class="form-field form-required">
350           <th scope="row"><label for="pass2"><?php _e('Repeat Password'); ?> <span class="description"><?php /* translators: password input field */_e('(required)'); ?></span></label></th>