Skip to content

Instantly share code, notes, and snippets.

@xlplugins
Created October 23, 2019 06:23
Show Gist options
  • Save xlplugins/85b1da759c658161fb589d72fc957407 to your computer and use it in GitHub Desktop.
Save xlplugins/85b1da759c658161fb589d72fc957407 to your computer and use it in GitHub Desktop.
Allow special cheracter in email address and create username automatically
<?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