ZM Ajax Login & Register
[resolved] Login / register redirect to referring page? (4 posts)

  1. emregan
    Posted 3 years ago #

    I am trying to redirect to the referring page - any chance you can add this as an option in the admin? I am trying to use a snippet in my functions.php to do this, but your plugin is overriding it :(

    Thank you! It's a great plugin.



  2. Zane Matthew
    Plugin Author

    Posted 3 years ago #


    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)

  3. B_Dark
    Posted 3 years ago #

    any news?

  4. Zane Matthew
    Plugin Author

    Posted 2 years ago #


    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


    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • ZM Ajax Login & Register
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.