New to wordpress and not a php developer, but I'm currently having an issue with a user being redirected to a default wordpress page and being asked to confirm if the user wants to log out twice. I have added screen shots of what is going on. I tried modifying the function in functions.php that handles the logout and another function wp-login.php (picture below) but have had no luck. Has anyone else ran into this issue before or any idea how to fix it?
Thanks!
Below are 2 images pertaining to the behavior of my website in its current state. After I click 'logout' in my nav bar, I get taken to the page in the 3rd image below and after i click the logout button, I get taken to a duplicate page and it looks like it tags stuff on the end of the urls query parameters.
New to wordpress and not a php developer, but I'm currently having an issue with a user being redirected to a default wordpress page and being asked to confirm if the user wants to log out twice. I have added screen shots of what is going on. I tried modifying the function in functions.php that handles the logout and another function wp-login.php (picture below) but have had no luck. Has anyone else ran into this issue before or any idea how to fix it?
Thanks!
Below are 2 images pertaining to the behavior of my website in its current state. After I click 'logout' in my nav bar, I get taken to the page in the 3rd image below and after i click the logout button, I get taken to a duplicate page and it looks like it tags stuff on the end of the urls query parameters.
Share Improve this question asked Apr 15, 2018 at 0:11 Scott Scott 1011 bronze badge1 Answer
Reset to default 1See https://codex.wordpress/Function_Reference/wp_logout_url , where you can define where you want to be redirected after a logout.