Skip to content

Instantly share code, notes, and snippets.

@joshfeck
Created October 25, 2017 21:46
Show Gist options
  • Save joshfeck/c14830939e0fe067597e82f90f3fecd9 to your computer and use it in GitHub Desktop.
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.
<?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