-
-
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)
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 | |
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