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
375      </tr>
376 <?php
377 /**
378  * Filter the display of the password fields.
379  *
380  * @since 1.5.1
381  *
382  * @param bool $show Whether to show the password fields. Default true.
383  */
384 if ( apply_filters( 'show_password_fields', true ) ) : ?>
385      <tr class="form-field form-required">
386           <th scope="row"><label for="pass1"><?php _e('Password'); ?> <span class="description"><?php /* translators: password input field */_e('(required)'); ?></span></label></th>
387           <td>
388                <input class="hidden" value=" " /><!-- #24364 workaround -->
389                <input name="pass1" type="password" id="pass1" autocomplete="off" />
390           </td>
391      </tr>
392      <tr class="form-field form-required">
393           <th scope="row"><label for="pass2"><?php _e('Repeat Password'); ?> <span class="description"><?php /* translators: password input field */_e('(required)'); ?></span></label></th>