Skip to content

Instantly share code, notes, and snippets.

@joshfeck
Created August 29, 2019 19:57
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/1d8d45157eda317c211ef6145ae43c8c to your computer and use it in GitHub Desktop.
Save joshfeck/1d8d45157eda317c211ef6145ae43c8c to your computer and use it in GitHub Desktop.
Change checkout URL for promoted wait list registrations (parsed by the [RECIPIENT_WAITLIST_REGISTRATION_URL] shortcode)
<?php
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file
add_filter(
'FHEE__EED_Wait_Lists__wait_list_checkout_url',
'my_modify_checkout_link_for_promoted_waitlist_reg',
10,
2
);
function my_modify_checkout_link_for_promoted_waitlist_reg(
$url,
$registration
) {
$url = add_query_arg(
array(
'e_reg_url_link' => $registration->get_primary_registration()->reg_url_link(),
'step' => 'attendee_information',
),
EE_Registry::instance()->CFG->core->reg_page_url()
);
return $url;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment