Support » Plugin: ZM Ajax Login & Register » Login / register redirect to referring page?

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

    (@zanematthew)

    Emregan,

    So you want to redirect the user to the page they were just on? How about just leaving the redirect setting blank?

    If that doesn’t work, I’ll add that as a setting and should be able to have it in the next release (2-3 days from now)

    any news?

    Plugin Author Zane Matthew

    (@zanematthew)

    B_Dark,

    Apologies for letting this slide for so long, but I looked into this.

    1. When the redirect URL is blank the user is redirected back the page there were previously on.
    2. Alternatively I’ve added a filter, zm_ajax_login_redirect which can be used to change the redirect URL from your functions.php

    Usage:

    function my_func( $redirect_url ){
        return 'http://my-url.com/';
    }
    add_filter('zm_ajax_login_redirect', 'my_function');

    This update should be available in the next update, which will be 1.0.1, which I’m currently working on, should be available by tomorrow morning.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Login / register redirect to referring page?’ is closed to new replies.