Skip to:
Content
Pages
Categories
Search
Top
Bottom

Redirect user to a custom page after login


  • Guillaume
    Participant

    @guillaumes

    Hello,

    I want to redirect my user to a custom page after frontend login and login from the Login Widget

    I tried the BP Login Redirect plugin but I cannot choose a custom URL with this plugin.

    I would like to redirect my user to a specific page, like mysite.com/recent-news

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

  • Richie KS
    Participant

    @rkcorp

    should be able to add using wp redirect, add this to functions.php

    if( !function_exists('custom_user_login_redirect') ) {
    function custom_user_login_redirect() {
    $redirect_to = 'hxxp://mysite.com/recent-news';
    return $redirect_to;
    }
    add_filter('login_redirect','custom_user_login_redirect',10,3);
    }

    Guillaume
    Participant

    @guillaumes

    Working good ! THANKS 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirect user to a custom page after login’ is closed to new replies.
Skip to toolbar