Easy password when registering in WordPress

19 June 2017 в 12:38 Web developer blog
Хотите я произведу настройку как описано в статье вместо вас? Стоимость работы: 500 руб. Срок исполнения: 1 час. Работаю без предоплаты.

By default, in WordPress (in newer versions), a complicated password is required when registering
 

In some cases, for example, when we have an online store, we do not need it. In order to disable this in the function.php file of your theme, add the code

[php]
function wc_ninja_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_ninja_remove_password_strength’, 100 );
[/php]

Похожие статьи

Get a Free Quote
Please fill this for and we'll get back to you as soon as possible!

Name *

Email *

Message *

Корзина пуста