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
612            * Filters the display of the password fields.
613            *
614            * @since 1.5.1
615            * @since 2.8.0 Added the `$profileuser` parameter.
616            * @since 4.4.0 Now evaluated only in user-edit.php.
617            *
618            * @param bool    $show        Whether to show the password fields. Default true.
619            * @param WP_User $profileuser User object for the current user to edit.
620            */
621           $show_password_fields = apply_filters( 'show_password_fields', true, $profileuser );
622           if ( $show_password_fields ) :
623                ?>
624      </table>
625
626      <h2><?php _e( 'Account Management' ); ?></h2>
627 <table class="form-table" role="presentation">
628 <tr id="password" class="user-pass1-wrap">
629      <th><label for="pass1"><?php _e( 'New Password' ); ?></label></th>
630      <td>