This topic has 5 replies, 3 voices, and was last updated 7 years by Laura.

  • Author
  • #52337
     johnwinch
    Participant

    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,

    #52551
     Laura
    Moderator

    Hello, please add this to your functions.php in child theme

    COPY CODE
    
    add_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 solution

    Laura 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 🙂

    #52646
     johnwinch
    Participant

    It’s not working, new members still get the membership page when they sign up

    #52986
     Laura
    Moderator

    Hello, 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 solution

    Laura 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 🙂

    #133804
     love2playgames
    Participant

    Hi 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

    #134135
     Laura
    Moderator

    Hello, 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 solution

    Laura 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 🙂

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?