New answers tagged

0

If you can't use wp_logout_url() funcition, You can turn off this validation using this code: add_action('check_admin_referer', 'logout_without_confirm', 10, 2); function logout_without_confirm($action, $result) { /** * Allow logout without confirmation */ if ($action == "log-out" && !isset($_GET['_wpnonce'])) { ...



Top 50 recent answers are included