Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Move all ticket information rows so they all display together before the Event Espresso 4 registration forms. Add this to your functions file.
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file
function ee_custom_move_ticket_info_divs() {
'jQuery( document ).ready(function($) {
$(".spco-ticket-info-dv .item").not(":first").insertAfter(".spco-ticket-info-dv .item:first");
$(".spco-ticket-info-dv h5").not(":first").hide();
$(".spco-ticket-info-dv thead").not(":first").hide();
$(".spco-ticket-info-dv table").not(":first").hide();
add_action( 'wp_enqueue_scripts', 'ee_custom_move_ticket_info_divs', 11 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment