Skip to main content
9 events
when toggle format what by license comment
Dec 20, 2020 at 7:26 comment added Mayank Dudakiya I have found the best solution and explanation: scratchcode.io/how-to-logout-without-confirmation-in-wordpress
Apr 4, 2020 at 21:39 vote accept horace
Apr 4, 2020 at 3:54 answer added 西門 正 Code Guy - JingCodeGuy timeline score: 2
Apr 3, 2020 at 19:54 comment added horace I have added the code to the original post. Thanks!
Apr 3, 2020 at 19:52 history edited horace CC BY-SA 4.0
added 1296 characters in body
Apr 3, 2020 at 13:50 comment added 西門 正 Code Guy - JingCodeGuy How did you do the login code? Did you use any filter? Maybe you post your custom login code here if convenient. Maybe clues lie there.
Apr 3, 2020 at 10:45 comment added horace I use WordPress 5.4 and I did some tests like you suggested. I figured out that if I log in with the standard WordPress /wp-admin/ login form, logging out works without the confirmation page. But if I use my own custom frontend login form that uses wp_signon() logging out only works with the confirmation page. What could be the reason for that? I use wp_signon() in the after_setup_theme action and also do a wp_set_current_user() afterwards. Is there anything else I have to do? (Except for the annoying log out confirmation page everything seems to work fine.)
Apr 3, 2020 at 1:19 comment added 西門 正 Code Guy - JingCodeGuy What versions of WP are you using? Did you try disabling all plugins to test? Did you try go back to default theme to test?
Apr 2, 2020 at 22:50 history asked horace CC BY-SA 4.0