Created
October 23, 2019 06:23
-
-
Save xlplugins/85b1da759c658161fb589d72fc957407 to your computer and use it in GitHub Desktop.
Allow special cheracter in email address and create username automatically
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
<?php | |
add_action( 'wfacp_before_process_checkout_template_loader', function () { | |
add_action( 'woocommerce_checkout_process', function () { | |
$instance = WFACP_Core()->template_loader->get_template_ins(); | |
remove_filter( 'woocommerce_checkout_posted_data', [ $instance, 'assign_email_as_a_username' ] ); | |
} ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment