Thread Starter
Jman25
(@jman25)
I have added that snippet to my functions.php code but it appears to not be working.
functions.php is as follows:
<?php
global $etheme_theme_data;
$etheme_theme_data = wp_get_theme( get_stylesheet_directory() . ‘/style.css’ );
require_once( get_template_directory() . ‘/framework/init.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 );
That snippet is working for me.
Clear your browser / site cache maybe before testing again.
If it still doesn’t work disable all plugins except for WooCommerce and switch to a default wordpress theme. Then add this snippet via the code snippets plugin listed here: https://www.skyverge.com/blog/add-custom-code-to-wordpress/
Thread Starter
Jman25
(@jman25)
It appears to have worked.
Out of curiosity, despite accepting a password such as bFakers1!
it still rated the strength of the password. Is this how it is supposed to work?
Ideally we would want the prompt suggesting length, uppercase/lowercase, and symbol(s) to be present but not the rating. This could make our customers think they still need to create a semi-complex password.
It uses this password strength library: https://blogs.dropbox.com/tech/2012/04/zxcvbn-realistic-password-strength-estimation/
You can read about the strength meter here: https://wptavern.com/ridiculously-smart-password-meter-coming-to-wordpress-3-7
If you want to show the meter but not force it, then that will take some further customization.
Thread Starter
Jman25
(@jman25)
Everything is working exactly as we want it. It will accept any password we enter.
As previously asked however, is there a way to get rid of the prompt that rates your password? Ex. ‘weak – please enter a stronger password.’
Thread Starter
Jman25
(@jman25)
I have looked at that code as well as the one posted above.
Although woocommerce will now accept any password it still rates it (very weak, weak, medium, strong).
However my woocommerce still displays these strength ratings, I would like to have them removed to where they no longer display.
Thank you for your help so far and continued patience.
Thread Starter
Jman25
(@jman25)
http://synergymedco.com/wp-content/uploads/2016/08/Untitled-9.jpg
Highlighted red portion is what I need to be gone. ‘Remove the password strength meter’ snippet does not seem to be working assuming I am properly using it.
I just tested the snippet mentioned in the first reply, and it removes the password strength meter.
The plugin My Custom Functions allows you to add custom functions, like the snippet, to your site. There is a YouTube video about it that someone created that outlines how it is used.