WP send subscibers back 2 pages after login

2 replies
I wanted some classes of Wordpress users (everyone except authors and editors) sent back to the page that they logged in from and then refresh that page (to show content they couldn't see when not logged in)
I set redirects for those users to a page with a custom header and added
CONTENT="0; URL="javascript:window.location.reload(history.go(-2));">
Unfortunately that code just stays on the page I sent them to after loging in without going back. It just loops endlessly reloading the page.
#back #login #pages #send #subscibers
  • Profile picture of the author mariya20
    The first option is to use the Wordpress Login Redirect Plugin easy to use and simple and for more advanced options you can use : Peter's Login Redirect Plugin

    {{ DiscussionBoard.errors[8660029].message }}

Trending Topics