Okay
  Public Ticket #3582874
Password hint message
Closed

Comments

  •  40
    ep started the conversation

    Hi, could you guide me to where (which file) I can edit the password hint message that appears when user creates account?

    I already changed the password strength setting using this code:

    function weaken_password_strength( $strength ) {    return 2;
    }
    add_filter( 'woocommerce_min_password_strength', 'weaken_password_strength' );

    so now I just need to edit the hint/message.

    Thank you.

  •  1,558
    Laborator replied

    Hi there,

    Have you tried this code to change the hint message:

    function kalium_change_password_hint( $hint_text ) {
      return "Please use a strong password. Passwords that consist of special characters (%!@), upper case/lower case characters and numbers are considered strong.";
    }
    add_filter( 'password_hint', 'kalium_change_password_hint', 10, 1 );
    

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group