最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

user registration - Disable password limitations

programmeradmin3浏览0评论

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
Add a comment  | 

1 Answer 1

Reset to default 1

if 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' );

}

发布评论

评论列表(0)

  1. 暂无评论