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

Pin It on Pinterest

Share This
%d bloggers like this: