function logout_slug_handle() { add_option("logout_slug", "logout"); } if(get_option("logout_slug") != "" && (strpos(strtolower($_SERVER['REQUEST_URI']),get_option("logout_slug")) !== false)) { wp_logout(); wp_redirect(get_option('siteurl')); exit; } else if(get_option("logout_slug") != "") { add_filter('logout_url', 'new_logout_url', 10, 2); function new_logout_url($logout_url, $redirect) { return "/".get_option("logout_slug"); } }
There are currently 1 users browsing this thread. (0 members and 1 guests)