Remove wordpress password difficulty

0

I tried to remove the difficulty to write a password in wordpress, I use the ultimate members plugin to register, I used the code below to solve the problem, but I could not.

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

I tried this too:

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 );
    
asked by anonymous 24.11.2017 / 13:58

1 answer

0

Dude, you already answered the question Poe this function in the root folder of your project that will be all right

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 );
    
24.11.2017 / 14:48