Redirect to custom url after confirm
-
Hi,
When someone fills in the affiliate registration form I want to redirect to a custom page (when affiliate is confirmed). How can I do this? I’ve already checked the codes, but I think I need some help with this. I also add this code:
if( defined( ‘YITH_WCAF’ ) && ! function_exists( ‘yith_wcaf_change_become_an_affiliate_redirection’ ) ){
function yith_wcaf_change_become_an_affiliate_redirection( $url ){
return ‘YOUR CUSTOM URL HERE’;
}
add_filter( ‘yith_wcaf_become_an_affiliate_redirection’, ‘yith_wcaf_change_become_an_affiliate_redirection’ );
}but this doesn’t work. It goes straight to the (same) confirmed page (/?nm=confirmed) with the text ”You have already affiliated with us. Thank you!” Affiliates will be confirmed/accept automaticly. I want them to automatically go to the Affiliates Dashboard after they sign up. I hope you can help me with this.
Thanks!
The topic ‘Redirect to custom url after confirm’ is closed to new replies.