Skip to content

Instantly share code, notes, and snippets.

@lukecav
Created August 13, 2018 19:42
Show Gist options
  • Save lukecav/97fbf277c99cee4357199dfff1ba0ecc to your computer and use it in GitHub Desktop.
Save lukecav/97fbf277c99cee4357199dfff1ba0ecc to your computer and use it in GitHub Desktop.
Generated password is based on the customers email address in WooCommerce
function wcs_filter_password_email( $args ) {
$args['user_pass'] = $args['user_email'];
return $args;
}
add_filter( 'woocommerce_new_customer_data', 'wcs_filter_password_email' );
@lukecav
Copy link
Author

lukecav commented Aug 13, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment