Support

Home Forums Event Espresso Premium Easier Flow for Multiple Events Registration Reply To: Easier Flow for Multiple Events Registration

Reply To: Easier Flow for Multiple Events Registration

Author Replies
Jarred # Posted on May 3, 2018 at 3:40 pm

So basically to do what I want the final changes to PHP would be this below

//* Change MER popup events button to return to same page
add_filter( 
    'FHEE__EED_Multi_Event_Registration__set_definitions__events_list_url', 
    'my_custom_url_change_for_cart' 
);
function my_custom_url_change_for_cart( $url ) {
    if(isset($_REQUEST['uts'])){
        $url = get_post_type_archive_link( 'espresso_events' );
    } else {
        $url = '';
    }
    return $url;
}
//* Change MER popup events button to add more
add_filter(
  'FHEE__EED_Multi_Event_Registration__return_to_events_list_btn_txt',
  function(){return 'Add more';}
);
Do NOT follow this link or you will be banned from the site!