Skip to content

Instantly share code, notes, and snippets.

@joshfeck
Created April 26, 2018 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshfeck/549eb2869a28c675405305dd69ce583a to your computer and use it in GitHub Desktop.
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.
<?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