How to redirect each type of member to a specific page in WordPress?

I am using membership plugin and I have created 4 members (free, silver, gold, platinum).

All users currently redirect to the same page but I want to redirect each user to their own page (e.g. free user should redirect to free page, gold user redirect to gold page etc.).

Read More

Is is possible? If yes, How I can do this?

Related posts

2 comments

  1. You can set each type redirect url and that url pass in wp-login.php page so on a specific page you can redirect.

  2. Use “login redirect” hook to redirect an user after login.
    codex reference

    Or you can use “wp login” hook to redirect user after login.

    function your_function_name($user_login, $user) {
    
        // code to check membership of an user.
        // use wp_redirect to redirect conditionally to specific pages..
    
    }
    add_action('wp_login', 'your_function_name', 10, 2);
    

Comments are closed.