WordPress.org

Support

Support » Plugins and Hacks » Page Security & Membership » [Plugin: Page Security by Contexture] Controlling redirect upon login

[Plugin: Page Security by Contexture] Controlling redirect upon login

Viewing 1 replies (of 1 total)
  • Plugin Author Matt van Andel

    @veraxus

    There’s a simple trick that can be used in vanilla WordPress to do exactly this.

    Simply add a ?redirect_to=%2F querystring variable to your login links and users will be automatically be redirected to the homepage when they log in.

    Example (put this in your href):

    http://example.com/wp-login.php?redirect_to=%2F
    

    Note: %2F is the url-encoded version of / (forward-slash). If you have bigger urls, you can encode them with online tools like this.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Page Security by Contexture] Controlling redirect upon login’ is closed to new replies.
Skip to toolbar