show_password_fields WordPress Filter Hook

The show_password_fields hook is used to display the password fields on the user profile page. This hook is triggered when the user is editing their own profile, or when an administrator is editing another user's profile.

apply_filters( 'show_password_fields', bool $show, WP_User $profile_user ) #

Filters the display of the password fields.


Parameters

$show

(bool)Whether to show the password fields. Default true.

$profile_user

(WP_User)User object for the current user to edit.


Top ↑

Source

File: wp-admin/user-edit.php

View on Trac


Top ↑

Changelog

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

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.