apply_filters( 'password_hint', string $hint )

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


Parameters

$hint string
The password hint text.

Top ↑

Source

File: wp-includes/user.php. View all references

return apply_filters( 'password_hint', $hint );


Top ↑

Changelog

Changelog
Version Description
4.1.0 Introduced.

Top ↑

User Contributed Notes

  1. Skip to note 1 content
    Contributed by marginean.doru
    /**
     * 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;
    }

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