[Resolved] How do I redirect to home url upon logout?
So far the plugin is working just fine with all my customizations except for logging out.
I installed the plugin through the Plugins page of my WordPress Dashboard and set my new renamed login page to “connect” (It reads: http://www.benscg.com/connect/ in the Settings).
I am using BBPress 2.5.1 and logging my users in through the BBpress Login Widget that comes with it. When I login as a normal user, everything works just fine and the user is logged in, remaining on the homepage url and the widget updates accordingly. I can perform the lost-password functionality with a normal user just fine and be redirected exactly where I want them to go afterwards and I can use the Register page with WP-reCAPTCHA (soon to be replaced though) just fine as a normal user, getting them redirected to my homepage with a custom message I setup.
That all still works with this plugin right out of the box. So Awesome!
However, when a normal user logs out, they get redirected to: “http://www.benscg.com/connect/?loggedout=true” and it shows the wordpress backend. 🙁
I just want to have a logged out user to be redirected to the home page (http://www.benscg.com) when they click the logout button instead of the wordpress backend noted above…
I tried to find a hook/filter to setup in my functions.php to control this, but I don’t know if it’s your plugin, wordpress, or BBpress causing the redirect to the new URL. I also tried to modify your logout_url() function in the rename-wp-login.php file directly through the Plugin Editor, but changed it back to the original function after no luck. I must be missing something somewhere… lol.
If I deactivate the plugin, everything works as I intend it to…
The pages are live, so if you want to create a user to test it out or something, be my guest. Let me know who it is and I’ll delete you afterwards, ect… If you need anything else, just ask.
Thanks for helping and providing this cool plugin!
- The topic ‘[Resolved] How do I redirect to home url upon logout?’ is closed to new replies.