Easy password when registering in WordPress
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]