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
298      </tr>
299      <tr class="form-field">
300           <th scope="row"><label for="last_name"><?php _e('Last Name') ?> </label></th>
301           <td><input name="last_name" type="text" id="last_name" value="<?php echo esc_attr($new_user_lastname); ?>" /></td>
302      </tr>
303      <tr class="form-field">
304           <th scope="row"><label for="url"><?php _e('Website') ?></label></th>
305           <td><input name="url" type="text" id="url" class="code" value="<?php echo esc_attr($new_user_uri); ?>" /></td>
306      </tr>
307 <?php if ( apply_filters('show_password_fields', true) ) : ?>
308      <tr class="form-field form-required">
309           <th scope="row"><label for="pass1"><?php _e('Password'); ?> <span class="description"><?php /* translators: password input field */_e('(twice, required)'); ?></span></label></th>
310           <td><input name="pass1" type="password" id="pass1" autocomplete="off" />
311           <br />
312           <input name="pass2" type="password" id="pass2" autocomplete="off" />
313           <br />
314           <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div>
315           <p class="description indicator-hint"><?php _e('Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ &amp; ).'); ?></p>
316           </td>