Redirect User to Specific Page After Logging In

This topic contains 3 replies, has 2 voices, and was last updated by  Paolo 8 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #154808

    luxman
    Free User
    Post count: 38

    I see there is a code to change the LOGIN link:

    
    
    add_filter('geodir_login_url','change_geodir_login_url',10,3);
    function change_geodir_login_url($login_url,$args,$gd_page_id){
    $login_url = 'https://www.WEBSITE.com/login/';
    return $login_url;
    }

    I need a code that redirects the user to a specific page after they click sign in but it has to work just for this plugin, not for all logins.

    #154814

    Paolo
    Site Admin
    Post count: 31206

    That is not possible. The login function is from wordpress not from the plugins. So if you add a redirect it will be for all logins.

    That function allows you to change the URL for the default GD login page so that you can use for example the login form provided by a theme or another plugin instead of using more than 1 login form.

    Thanks

    #154816

    luxman
    Free User
    Post count: 38

    I’m using GravityForms to register new “directory” users, with their own unique user role in WP. I found that the plugin Peters Login Redirect helps fix this issue 🙂

    #155250

    Paolo
    Site Admin
    Post count: 31206

    You are welcome 🙂

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket