Created
April 26, 2018 16:12
-
-
Save joshfeck/549eb2869a28c675405305dd69ce583a to your computer and use it in GitHub Desktop.
Removes the Primary Registrant's email address from the hidden input that's passed to the Stripe billing form modal. Event Espresso 4 + Stripe add-on.
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 | |
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
add_action( 'wp_enqueue_scripts', 'my_ee_remove_stripe_predefined_email', 11 ); | |
function my_ee_remove_stripe_predefined_email() { | |
wp_add_inline_script( | |
'single_page_checkout', | |
'jQuery( document ).one( "ajaxStop", function() { | |
jQuery("#ee-stripe-transaction-email").val(""); | |
} );' | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment