[Plugin: Login With Ajax] If redirect_to is not null, on login go to redirect_to
-
Hello!
I am using various other plugins with login-with-ajax, including a members only plugin. My situation:
If a member, who is not logged in, attempts to access a page or post on the members only section, they are redirected to my customized login page (not the wordpress login page), with “redirect_to” = whatever the url they were trying to access.
What I am trying to figure out how to do is edit the login-with-ajax plugin to have it check “redirect_to”, and if it is not null, to go to “redirect_to” upon login. If it is null, though, I want it to redirect to the members home page (which it does using the redirect settings in the admin page of login-with-ajax).
I certainly do not mind going into the plugin and editing code, but I’m not sure how to accomplish this… any thoughts??
TIA
- The topic ‘[Plugin: Login With Ajax] If redirect_to is not null, on login go to redirect_to’ is closed to new replies.