WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 597 | * Filters the display of the password fields. |
| 598 | * |
| 599 | * @since 1.5.1 |
| 600 | * @since 2.8.0 Added the `$profileuser` parameter. |
| 601 | * @since 4.4.0 Now evaluated only in user-edit.php. |
| 602 | * |
| 603 | * @param bool $show Whether to show the password fields. Default true. |
| 604 | * @param WP_User $profileuser User object for the current user to edit. |
| 605 | */ |
| 606 | if ( $show_password_fields = apply_filters( 'show_password_fields', true, $profileuser ) ) : |
| 607 | ?> |
| 608 | </table> |
| 609 | |
| 610 | <h2><?php _e( 'Account Management' ); ?></h2> |
| 611 | <table class="form-table"> |
| 612 | <tr id="password" class="user-pass1-wrap"> |
| 613 | <th><label for="pass1"><?php _e( 'New Password' ); ?></label></th> |
| 614 | <td> |
| 615 | <input class="hidden" value=" " /><!-- #24364 workaround --> |