LogOut not working anymore
-
Hi,
I accidently deleted the entire menu instead of just one menu item… Now I tried to set it up again but I experience an issue with the LogOut.
This used to work like a charm before I deleted the menu:
add_action('wp_logout','auto_redirect_after_logout'); function auto_redirect_after_logout(){ wp_safe_redirect( home_url() ); exit(); }
Now, after I recreated the menu, clicking on “LogOut” doesn’t do anything. The user remains still logged in. What can I do to fix this? :-/ The user should be directed to the homepage after clicking on “LogOut”.
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘LogOut not working anymore’ is closed to new replies.