Better Admin Bar PRO comes with a Logout widget. One click logs the user out of WordPress, and you decide where they land afterwards.
Set it up
- Go to Settings → Better Admin Bar → Quick Access Panel.
- Drag the Logout widget into the panel box.
- Click Edit and enter a redirect url. Leave it empty to show the WordPress login page.
- Click Save Changes.
Redirect examples
{site_url}: back to the home page.{current_url}: stay on the page the user was on.{site_url}/goodbye/: a page of your own.
The placeholders are explained in Custom widgets.
