Use this tiny WordPress plugin to redirect to homepage after logout instead of the login page. Handy if you have a WordPress site which has frontend interaction for users.
https://gist.github.com/2365782
Use this tiny WordPress plugin to redirect to homepage after logout instead of the login page. Handy if you have a WordPress site which has frontend interaction for users.
https://gist.github.com/2365782
[…] I wanted to redirect the visitor to the home page once they logged out (so they don’t get greeted with the WP login form). A really simple plugin that achieves this was developed by Daan Kortenbach and can be found here. […]
Great plutgin! How can I change the redirect destination? I want to send logged out users to a different URL, not the login page.
Many thanks!
Andy.
Change the code on line 40:
wp_redirect( "http://whateveryouwant.com/subpage/" );
Thanks Daan! Appreciate your support.