Support » Plugin: Login With Ajax » No redirect for a specific Page where the Login Class is used

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Marcus

    (@netweblogic)

    Hi Julian, sorry for the late reply due to holiday season. Unfortunately, it’s not possible to do this without custom-coding.

    I’m short on time to test this out, but this is along the lines of what you’d want:

    add_filter('lwa_ajax_login', function($return){
      if( wp_get_referer() == 'https://yoursite.com/the-page/' ){
        unset($return['redirect']);
      }
      return $return;
    });

    Hey Marcus,
    thank you so much! tested it in the morning and everything is working perfect!
    Wish you a nice day,
    topic is closed ๐Ÿ™‚
    Greetings Julian

    Plugin Author Marcus

    (@netweblogic)

    Excellent, nice to know it worked first go ๐Ÿ™‚

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.