woocommerce password strength change

Solutions on MaxInterview for woocommerce password strength change by the best coders in the world

showing results for - "woocommerce password strength change"
Magdalena
08 Apr 2019
1add_filter( 'woocommerce_min_password_strength', 'reduce_min_strength_password_requirement' );
2function reduce_min_strength_password_requirement( $strength ) {
3    // 3 => Strong (default) | 2 => Medium | 1 => Weak | 0 => Very Weak (anything).
4    return 2; 
5}
6
7# change the wording of the password hint.
8add_filter( 'password_hint', 'indic_password_hint' );
9function indic_password_hint ( $hint ) {
10    $hint = 'Hint: To make it stronger, use upper and lower case letters, numbers, and symbols like ! " ? $ % ^ & ).';
11    return $hint;
12}
13
14# to remove password hint and strendth check
15function indic_remove_password_strength() {
16    wp_dequeue_script( 'wc-password-strength-meter' );
17}
18add_action( 'wp_print_scripts', 'indic_remove_password_strength', 10 );