Title: show_password_fields
Published: April 25, 2014
Last modified: February 24, 2026

---

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

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/show_password_fields/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/show_password_fields/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/hooks/show_password_fields/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/show_password_fields/?output_format=md#wp--skip-link--target)

Filters the display of the password fields.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/show_password_fields/?output_format=md#parameters)󠁿

 `$show`bool

Whether to show the password fields. Default true.

`$profile_user`[WP_User](https://developer.wordpress.org/reference/classes/wp_user/)

User object for the current user to edit.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/show_password_fields/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-admin/user-edit.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-admin/user-edit.php#L680)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/user-edit.php#L680-L680)

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/show_password_fields/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.4.0](https://developer.wordpress.org/reference/since/4.4.0/) | Now evaluated only in user-edit.php. | 
| [2.8.0](https://developer.wordpress.org/reference/since/2.8.0/) | Added the `$profile_user` parameter. | 
| [1.5.1](https://developer.wordpress.org/reference/since/1.5.1/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fshow_password_fields%2F)
before being able to contribute a note or feedback.