WordPress.org

Ready to get started?Download WordPress

Forums

HC Custom WP-Admin URL
Do logout & auth_redirect(); work? (2 posts)

  1. Shutez
    Member
    Posted 7 months ago #

    Hi,

    Will the logout still work with this plugin (which redirects you back to the login page). Also, will this still work?

    if (!is_user_logged_in()) {
    		auth_redirect();
    	}

    Thanks,

    Tim

    http://wordpress.org/plugins/hc-custom-wp-admin-url/

  2. Some Web Media
    Member
    Plugin Author

    Posted 7 months ago #

    Logout works, but it redirects user to home page.

    With auth_redirect() you would get into endless loop. I could provide a public function that will enable redirections inside your custom code.

    Something like this:

    if (!is_user_logged_in()) {
        hc_enable_wpadmin();
        auth_redirect();
    }

    How about that?

Reply

You must log in to post.

About this Plugin

About this Topic