WordPress企业主题定制/开发/优化

woocommerce用户密码强度修改(Woocommerce Password Strength Meter Too High)

首页 » WORDPRESS教程 » woocommerce用户密码强度修改(Woocommerce Password Strength Meter Too High)

woocommerce用户密码强度修改
Woocommerce Password Strength Meter Too High

可以用下面这个方法重设强度:

add_filter( 'woocommerce_min_password_strength', 'uh_oh_weakpasswords' );
function uh_oh_weakpasswords() {
return 1;
}

Change higher number for stronger password 1-5

 

也可以用下面这个方法重设强度:

Add this to your functions.phps to remove the requirements:

function remove_wc_password_meter() {
wp_dequeue_script( 'wc-password-strength-meter' );
}
add_action( 'wp_print_scripts', 'remove_wc_password_meter', 100 );

Then use this plugin to add/control new requirements:
https://wordpress.org/plugins/woocommerce-enforce-strong-password

分类与标签:

WORDPRESS教程

相关项目