Logout link without going to login page
-
I’m using this code for users to logout
<a href="<?php echo wp_logout_url('/redirect/url/goes/here') ?>">Log out</a>
But the problem is that it will first go to the login page, then only redirect to the specified URL. How to make it directly logout + redirect to the specified URL without going to the login page?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Logout link without going to login page’ is closed to new replies.