logo logo

Easy password when registering in WordPress

19 June 2017 в 12:38 Web Development
Звёзд: 1Звёзд: 2Звёзд: 3Звёзд: 4Звёзд: 5

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

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

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