I’m not a fan of the default WordPress logout url because I think it’s boring.

WordPress Tip: Redirect your Logout URL

The default logout URL for your WordPress website or blog is usually www.yourdomain.com/wp-login.php?loggedout=true – the login panel.
But if, like me you would rather go somewhere exciting, like your homepage for example, the fix is quite simple. It involves add a few lines to your theme’s function php file so you need to be comfortable with editing that.

Edit the Functions.php
To change your logout url, add the following to functions.php
//* Add custom logout URL
add_filter( ‘logout_url’, ‘my_logout_url’ );
function my_logout_url( $url ) {
return ‘http://www.yourdomainofchoice.com’;

As always, do a BACKUP of your files before you edit ANY theme files so if something goes awry, you are ready to fix it!

Reference: RocketGeek.com

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

This site uses Akismet to reduce spam. Learn how your comment data is processed.