Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to configure initial access for the user to go to his profile automatically?

Viewing 4 replies - 1 through 4 (of 4 total)

  • heliocorrei
    Participant

    @heliocorrei

    Please, anybody could be help me?


    Anonymous User 18187419
    Inactive

    @anonymized-18187419

    If you know how to add code snippets to your site then this could help …

    How to redirect after registration?


    heliocorrei
    Participant

    @heliocorrei

    Hi Michaelabf.

    I’m sorry, but I don’t know how to add and where to add.

    Could you tell me where I can find that file to edit and how do I add this snippet?

    Thank you.


    Anonymous User 18187419
    Inactive

    @anonymized-18187419

    You MUST test this on a staging site/test site BEFORE you use it on your live website.

    – Download “Code Snippets” plugin.
    – Add the code snippet below using that plugin.
    – Change the URL to where you want to redirect to.
    – If you want to redirect to profile, then try http://www.mysite.com/members/me/

    function bp_redirect($user) {
        $redirect_url = 'http://www.mysite.com/yeah';
        bp_core_redirect($redirect_url);
    }
    
    add_action('bp_core_signup_user', 'bp_redirect', 100, 1);
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar