Title: password_hint
Published: December 18, 2014
Last modified: August 20, 2026

---

# apply_filters( ‘password_hint’, string $hint )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/password_hint/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/password_hint/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/password_hint/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/password_hint/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/hooks/password_hint/?output_format=md#user-contributed-notes)

Filters the text describing the site’s password complexity policy.

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

 `$hint`string

The password hint text.

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

    ```php
    return apply_filters( 'password_hint', $hint );
    ```

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

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/password_hint/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_get_password_hint()](https://developer.wordpress.org/reference/functions/wp_get_password_hint/)`wp-includes/user.php` |

Gets the text suggesting how to create strong passwords.

  |

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

| Version | Description | 
| [4.1.0](https://developer.wordpress.org/reference/since/4.1.0/) | Introduced. |

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/hooks/password_hint/?output_format=md#user-contributed-notes)󠁿

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/hooks/password_hint/?output_format=md#comment-content-5520)
 2.   [marginean.doru](https://profiles.wordpress.org/margineandoru/)  [  5 years ago  ](https://developer.wordpress.org/reference/hooks/password_hint/#comment-5520)
 3. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fpassword_hint%2F%23comment-5520)
    Vote results for this note: 0[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fpassword_hint%2F%23comment-5520)
 4.     ```php
        /**
         * Change the wording of the password hint.
         *
         * @param string $hint
         * @return string
         */
        add_filter( 'password_hint', 'change_password_hint_message' );
        function change_password_hint_message( $hint ) {
            $hint = __( 'Hint: To make it stronger, use upper and lower case letters, numbers, and symbols like ! " ? $ % ^ & ).', 'text-domain' );
    
            return $hint;
        }
        ```
    
 5.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fpassword_hint%2F%3Freplytocom%3D5520%23feedback-editor-5520)

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