multiple success landing pages
-
Hi all,
Hope someone can help with this. I have read through the docs and can see that you can redirect to different success landing pages using some custom code and form id. I am just struggling to find out where this custom code actually goes and which part of the code is the form id. If anyone could help , it would be amazing. Here is the sample code from WP Simple pay docs and a little underneath of how i think my edit should go.
function simpay_custom_form_157_payment_success_page() {
// Change the redirect URL
return ‘https://www.mywebsite.com/somepage’;
}
add_filter( ‘simpay_form_157_payment_success_page’, ‘simpay_custom_form_157_payment_success_page’ );I take it the ‘157’ is the ID of the plan or subscription i would replace with my own one called newpurchase for examples sake? so it would be
function simpay_custom_form_newpurchase_payment_success_page()
thanks i advance guys
- The topic ‘multiple success landing pages’ is closed to new replies.