show_password_fields filter-hook . WP 1.5.1
Filters the display of the password fields.
Usage
add_filter( 'show_password_fields', 'filter_function_name_8549', 10, 2 ); function filter_function_name_8549( $show, $profileuser ){ // filter... return $show; }
- $show(true/false)
- Whether to show the password fields.
Default: true - $profileuser(WP_User)
- User object for the current user to edit.
Changelog
Since 1.5.1 | Introduced. |
Since 2.8.0 | Added the $profileuser parameter. |
Since 4.4.0 | Now evaluated only in user-edit.php. |
Where the hook is called
In file: /wp-admin/user-edit.php
show_password_fields
wp-admin/user-edit.php 624
$show_password_fields = apply_filters( 'show_password_fields', true, $profileuser );