-
Author
-
March 31, 2015 at 00:27 #52337johnwinchParticipant
Hello,
I only want to use the membership levels to allow people to hide the advertising if they pay.
The problem is that when someone signup they are redirected to the level page, hwo cna I avoid that?
How can I redirect them to their profile for example instead?Best regards,
March 31, 2015 at 22:47 #52551LauraModeratorHello, please add this to your functions.php in child theme
COPY CODEadd_filter('pmpro_register_redirect', '__return_false');
Let me know if it works 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
April 1, 2015 at 04:52 #52646johnwinchParticipantIt’s not working, new members still get the membership page when they sign up
April 3, 2015 at 06:56 #52986LauraModeratorHello, please try with
COPY CODE/* Filter the redirect url for login*/ add_filter("login_redirect","kleo_redirect_to_profile",100,3); function kleo_redirect_to_profile($redirect_to_calculated,$redirect_url_specified,$user){ /*if no redirect was specified,let us think ,user wants to be in wp-dashboard*/ if(!is_super_admin($user->ID)) return bp_core_get_user_domain($user->ID ); else return $redirect_to_calculated; /*if site admin*/ }
🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
August 25, 2016 at 10:50 #133804love2playgamesParticipantHi Laura,
I inserted for the 2nd post #52986 function in the function.php,
I’m now on wordpress hosting at godaddy.com. suddenly having this popup window errors on the admin? Any idea?
Fatal error: Call to undefined function bp_core_get_user_domain() in /home/content/a2pnexwpnas04_data03/31/3549831/html/wp-content/themes/sweetdate-child/functions.php
Please help, thanks
August 29, 2016 at 08:25 #134135LauraModeratorHello, it seems like its not working, please delete the code. You should check redirection options at Sweetdate theme options 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
-
AuthorPosts
You must be logged in to reply to this topic.