apply_filters( ‘show_password_fields’, bool $show, WP_User $profile_user )

In this article

Filters the display of the password fields.

Parameters

$showbool
Whether to show the password fields. Default true.
$profile_userWP_User
User object for the current user to edit.

Source

$show_password_fields = apply_filters( 'show_password_fields', true, $profile_user );

Changelog

VersionDescription
4.4.0Now evaluated only in user-edit.php.
2.8.0Added the $profile_user parameter.
1.5.1Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.