When a website member logs out it redirects them to the wordpress login page rather than homepage
-
When a website member logs out it redirects them to the wordpress login page rather than homepage. Of course they dont have a wordpress account so its proving a problem. I downloaded code snippets and added:
add_action(‘wp_logout’,’auto_redirect_after_logout’);
function auto_redirect_after_logout(){
wp_safe_redirect( home_url() );
exit();
}however this isnt working.
-
-
The Website: https://becomaware.co.uk/
The URL before member logs out:
The URL after member logs out:
https://becomaware.co.uk/wp-login.php?loggedout=true&wp_lang=en_US
-
Hello there,
Many thanks for reaching out.
It looks like https://becomaware.co.uk/ is a self-hosted WordPress site with GoDaddy, which is a bit different to a site hosted on WordPress.com. You can read about these differences here: https://en.support.wordpress.com/com-vs-org/
You would need to reach out to your theme/plugin developers or the hosting provider for further assistance.
I hope this helps.
- The topic ‘When a website member logs out it redirects them to the wordpress login page rather than homepage’ is closed to new replies.