- This topic has 4 replies, 2 voices, and was last updated 8 years, 9 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate – Custom thank you page for affiliate registration
I need to use a custom thank you page for affiliate registrations. I have gone through the PHP files but I can’t seem to find the right place. I have made changes in several php files and tested and then reverted back. Any help with this would be appreciated.
Also I do not want to modify the current thank you, I just want to replace it with a page I have already made.
So you want to redirect to that custom thank you page after the registration is complete?
Which affiliate portal option are you using?
https://www.tipsandtricks-hq.com/wordpress-affiliate/setting-up-the-affiliate-viewarea-315
Yes, that is correct. I am using [wp_affiliate_view2]
okay the best option is to use affiliate registration complete action hook. That way you are not modifying the core plugin code.
The following is an example snippet of code that shows you how to use this action hook. You can add it to your theme’s functions.php file OR your custom plugin.
add_action ('wp_aff_registration_complete', 'custom_affiliate_redirection');
function custom_affiliate_redirection()
{
//TODO - The affiliate registration is complete, do the redirection.
$url = 'www.example.com/custom-page';//Your redirection page URL
header('Location: ' . $url);
}
That worked, Thank you.