I believe this plugin can be extended to WooCommerce. After looking through its files and folders, I found …
1. “class-hide-show-password.php” enqueues the scripts and styles to the login page, like so …
// Load login screen style sheet and JavaScript.
add_action( 'login_enqueue_scripts', array( $this, 'enqueue_styles' ) );
add_action( 'login_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
Instead of ‘login_enqueue_scripts’, it can be ‘wp_enqueue_scripts’, with a condition to check if the current page is WooCommerce “my-account” using is_wc_endpoint_url( 'my-account' )
2. The “/js/public.js” contains var el = $('#user_pass');
, which is id to wp-login.php password input field. I think it can be changed to an array, such as var el = ['#password', 'reg_password'];
. And change the rest of el.
to $el.
I’m yet to test out these changes.