WordPress.org

Support

Support » Plugins and Hacks » Peter's Login Redirect » Redirect if url is '?'

Redirect if url is '?'

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘Redirect if url is '?'’ is closed to new replies.
Skip to toolbar