Find Answers and Get Support › Forums › Gwangi – PRO Multi-Purpose Membership, Social Network & BuddyPress Community Theme › Compatible Plugins › BuddyPress › “Are you sure you want to log out?”
- This topic has 3 replies, 2 voices, and was last updated 2 years, 9 months ago by
Manathan.
-
AuthorPosts
-
@themodactyl
- 0 Topics
- 6719 Posts
Hi Gil, 🙂
I’m afraid I have no idea. 🤔
Maybe these topics will help you to solve your issue as they seem to answer the same concern:
- Bypass Woocommerce Logout “Are you sure you want to log out?” message
- How to log out without confirmation ‘Do you really want to log out?
Please note that this issue is related with the customization of third party plugins, not with the use of your theme. As theme authors, the installation, setting or debugging of third party plugins isn’t part of the support we will provide.
We remain available for all support requests related with the use of your theme.
Regards,
June 14, 2022 at 10:11 #41087gilParticipant@gill49- 32 Topics
- 126 Posts
Hi !
I found this code to put in the theme’s functions.php file. Apparently it does the job without breaking anything.// DÉSACTIVER LA CONFIRMATION DE DÉCONNEXION
add_action(‘check_admin_referer’, ‘logout_without_confirm’, 10, 2);
function logout_without_confirm($action, $result)
{
/**
* Allow logout without confirmation
*/
if ($action == “log-out” && !isset($_GET[‘_wpnonce’])) {
$redirect_to = isset($_REQUEST[‘redirect_to’]) ? $_REQUEST[‘redirect_to’] : ‘https://broichessac.fr/’;
$location = str_replace(‘&’, ‘&’, wp_logout_url($redirect_to));;
header(“Location: $location”);
die;
}
}June 16, 2022 at 05:57 #41131@themodactyl- 0 Topics
- 6719 Posts
I’m glad to read you’ve been able to solve this Gil! 🙂
Thank you for sharing the solution with us. I’m sure it will help other users facing the same issue. By doing this, you’re making a great contribution to this forum, and we thank you very much for that! #SharingIsCaring 💪🏻
Best,
June 16, 2022 at 10:08 #41142 -
AuthorPosts
Hi there,
This topic has been inactive for a while now so we will be closing it to keep the forum tidy. Don't hesitate to create a new topic if you still need help and we'll be glad to help you!
Best regards,
The Themosaurus team.
The topic ‘“Are you sure you want to log out?”’ is closed to new replies.