I had a "learnpress" plugin in my Wordpress website that uses default registration wordpress setting, but I'd like to remove all limitations of password including length (12 character), adding number and I'd like to be able to set a password in other languages too.
I tried this code in Functions.php but it didn't work! any ideas?
function wc_remove_password_strength() {
if ( wp_script_is( 'wc-password-strength-meter', 'enqueued' ) ) {
wp_dequeue_script( 'wc-password-strength-meter' );
}
}
add_action( 'wp_print_scripts', 'wc_remove_password_strength', 100 );
I had a "learnpress" plugin in my Wordpress website that uses default registration wordpress setting, but I'd like to remove all limitations of password including length (12 character), adding number and I'd like to be able to set a password in other languages too.
I tried this code in Functions.php but it didn't work! any ideas?
function wc_remove_password_strength() {
if ( wp_script_is( 'wc-password-strength-meter', 'enqueued' ) ) {
wp_dequeue_script( 'wc-password-strength-meter' );
}
}
add_action( 'wp_print_scripts', 'wc_remove_password_strength', 100 );
Share
Improve this question
asked Nov 17, 2018 at 15:18
zaf yzaf y
13 bronze badges
2
- you use woocommerce? – vikrant zilpe Commented Nov 19, 2018 at 5:48
- @vikrantzilpe, No sir I use directly the bank gate. Not woocommerce – zaf y Commented Nov 21, 2018 at 22:24
1 Answer
Reset to default 1if you use wocommerce please try this code to your current theme functions.php
add_action( 'wp_enqueue_scripts', 'misha_deactivate_pass_strength_meter', 10 );
function misha_deactivate_pass_strength_meter() {
wp_dequeue_script( 'wc-password-strength-meter' );
}