Skip to content

Instantly share code, notes, and snippets.


Pebblo/example.php Secret

Last active Feb 3, 2020
What would you like to do?
Example of how to change the 'Return to event list' used by the MER plugin to link to the page the user users to add the event to the cart,
<?php //Please do include the opening PHP tag if you already have one.
function tw_ee_mer_change_event_list_url_to_referer( $return_url ){
if( !empty( $_SERVER[ 'HTTP_REFERER' ] ) ) {
$return_url = $_SERVER[ 'HTTP_REFERER' ];
return $return_url;
add_filter( 'FHEE__EED_Multi_Event_Registration__set_definitions__events_list_url', 'tw_ee_mer_change_event_list_url_to_referer' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.