Redirect to Homepage After Logout
Redirect to Homepage After Logout
Description
This lightweight plugin automatically redirects users to the homepage after they log out of your WordPress site.
It’s simple, fast, and requires no configuration.
Features
- Redirects users to the homepage after logout
- Works with any WordPress theme
- No setup required — just activate and go
- No impact on login or other redirects
Credits
Developed by Sarangan Thillayampalam
Installation
- Upload the
redirect-homepage-logout.phpfile to the/wp-content/plugins/directory. - Activate the plugin through the Plugins menu in WordPress.
- Log out to test — you should be redirected to the homepage automatically.
Faq
No, it only changes the redirect behavior after logout.
Yes, edit the redirect-homepage-logout.php file and replace the home URL with your desired destination.
Reviews
Changelog
1.0.0
- Added Admin Settings Page.
- Added support for Custom URLs and Page Selection.
- Added Master Toggle to enable/disable functionality.
- Improved security with wp_safe_redirect for internal links.