Created
October 25, 2017 21:46
-
-
Save joshfeck/c14830939e0fe067597e82f90f3fecd9 to your computer and use it in GitHub Desktop.
Move the attendee form so it's before the ticket details. Event Espresso 4. Add this to your functions file.
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 | |
function ee_custom_move_attendee_form() { | |
wp_add_inline_script( | |
'single_page_checkout', | |
'jQuery( document ).ready(function($) { | |
$(".ee-reg-form-attendee-dv").insertAfter("#spco-attendee_information-pg"); | |
});' | |
); | |
} | |
add_action( 'wp_enqueue_scripts', 'ee_custom_move_attendee_form', 11 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment