WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. emregan
    Member
    Posted 1 year 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.

    Erin

    http://wordpress.org/extend/plugins/zm-ajax-login-register/

  2. Zane Matthew
    Member
    Plugin Author

    Posted 1 year ago #

    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)

  3. B_Dark
    Member
    Posted 1 year ago #

    any news?

  4. Zane Matthew
    Member
    Plugin Author

    Posted 11 months ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.