You are currently viewing Changing WooCommerce Password Strength Hint

Changing WooCommerce Password Strength Hint

The WooCommerce account registration form provides users with a “hint” explaining how long the password should be and what characters it should include. As soon as you type password it shows hint below text box, we can change the “Hint Message” using below code.

//Change Password hint message
add_filter( 'password_hint', function( $hint )
{
  return __( 'Hint: The password should be at least eight characters long. To make it stronger, use upper and lower case letters, numbers, and symbols.' );
} );

Use the above code in your plugin or function.php and change the hint using the above password_hint filter.

add_filter( 'password_hint', function( $hint )
{
     return __( 'Hint: Hint message here' );
} );

Leave a Reply