WordPress.org

Ready to get started?Download WordPress

Forums

Peter's Login Redirect
Redirect if url is '?' (2 posts)

  1. insertcoinforjoy
    Member
    Posted 1 year ago #

    Hi,

    So I'm using this to redirect certain users to certain URLs.
    And what I want to do now is when they land on the login page, they would get redirected to the their respective URL (while logged in of course). Can you help me do that?

    Great plugin btw.
    Thanks.

    http://wordpress.org/extend/plugins/peters-login-redirect/

  2. insertcoinforjoy
    Member
    Posted 1 year ago #

    I feel so dumb not trying things out.

    I got it to work. Made a template then placed this before the header.

    $current_user = wp_get_current_user();
    $redirect_to = admin_url();
    $redirect_url = redirect_wrapper( $redirect_to, '', $current_user );
    wp_redirect( $redirect_url );
    die();

    this is in the peters-login-redirect/wplogin_redirect_control.php file.

    Thanks again for this plugin. You saved me. lol.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.