• kbeaulieu

    (@kbeaulieu)


    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

    http://wordpress.org/extend/plugins/login-with-ajax/

Viewing 1 replies (of 1 total)
  • Thread Starter kbeaulieu

    (@kbeaulieu)

    So I just realized my problem is not with login-with-ajax, but with peters-login-redirect, which I am also using. That plugin has an option labeled as “Allow a POST or GET “redirect_to” variable to take redirect precedence,” which is essentially what I want to do. However, when I turn this function on, the user is not redirected to the “redirect_to” url…. ugh! Any input would be very appreciated!

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Login With Ajax] If redirect_to is not null, on login go to redirect_to’ is closed to new replies.