How to: PHP Log Out Link?
The key function to use is wp_logout_url. This function returns the URL for a user to logout. You can construct a regular anchor tag / link markup around it and style that as you see fit. wp_logout_url takes an optional $redirect argument to send the user to after logout. Here’s a sample with markup and … Read more