0
Need to figure out how to redirect depending on provider. Each provider will have their own thank you page.
The code below works fine for one thank you page.
//REDIRECT APPOINTMENTS
function app_redirect( $script ){
return str_replace("window.location.href=app_location()", "window.location.href='http://URL/'", $script);
}
add_filter( 'app_footer_scripts', 'app_redirect' );
Can someone provide code with 2 or more filters based on provider ID?
Thank you