Remove wordpress password difficulty

Asked

Viewed 158 times

0

I tried to remove the difficulty to write a password in wordpress, I use the plugin Ultimate Members 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 one 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 );

1 answer

0

Dude, you’ve already got the answer Put this function in the root folder of your project that will work 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 );

Browser other questions tagged

You are not signed in. Login or sign up in order to post.