apply_filters( 'show_password_fields', bool $show, WP_User $profile_user )
- Since
- 1.5.1, 2.8.0, 4.4.0
Filters the display of the password fields.
Compatibility
- WordPress
- since 4.4.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$showbool- Whether to show the password fields. Default true.
$profile_userWP_User- User object for the current user to edit.
Where this hook fires · 1
wp-admin/user-edit.php:680file scope
Source code
* @since 2.8.0 Added the `$profile_user` parameter. * @since 4.4.0 Now evaluated only in user-edit.php. * * @param bool $show Whether to show the password fields. Default true. * @param WP_User $profile_user User object for the current user to edit. */ $show_password_fields = apply_filters( 'show_password_fields', true, $profile_user ); ?> <?php if ( $show_password_fields ) : ?> </table> <h2><?php _e( 'Account Management' ); ?></h2> Changelog
Introduced in 1.5.1. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
4.4.0
Now evaluated only in user-edit.php.from the docblock
2.8.0
Added the
$profile_user parameter.from the docblock1.5.1
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 7.0.4 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.