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

Posted by

Hi,

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:

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

Example:
<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.

Thanks,

Shane G.

Leave a Reply

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