Created
August 13, 2018 19:42
-
-
Save lukecav/97fbf277c99cee4357199dfff1ba0ecc to your computer and use it in GitHub Desktop.
Generated password is based on the customers email address in WooCommerce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wcs_filter_password_email( $args ) { | |
$args['user_pass'] = $args['user_email']; | |
return $args; | |
} | |
add_filter( 'woocommerce_new_customer_data', 'wcs_filter_password_email' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://metorik.com/blog/change-the-woocommerce-auto-generated-password