WordPress.org

Forums

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

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • HC Custom WP-Admin URL
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic