最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - Logout redirects to default page

programmeradmin4浏览0评论

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 badge
Add a comment  | 

1 Answer 1

Reset to default 1

See https://codex.wordpress/Function_Reference/wp_logout_url , where you can define where you want to be redirected after a logout.

发布评论

评论列表(0)

  1. 暂无评论