How To Set Specific Page Redirect On Logout From WordPress Admin Area?

Posted by


You can set the desired page when do logout from wordpress admin area. For that you have to modify wp-login.php core file of wordpress. Here is the code which needs to be modified:

<a href=”<?php echo wp_logout_url(); ?>” title=”Logout”>Logout</a>

<a href=”<?php echo wp_logout_url(‘$index.php’); ?>”>Logg ut</a>

This will redirect to the index page of the blog when you logout from wordpress admin area. You can set any page which you would like to be.


Shane G.

Leave a Reply

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