apply_filters( ‘password_hint’, string $hint )

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

Parameters

$hintstring
The password hint text.

Source

return apply_filters( 'password_hint', $hint );

Changelog

VersionDescription
4.1.0Introduced.

User Contributed Notes

  1. Skip to note 2 content
    /**
     * 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.