BUDDYBOSS WEB

Your community, courses and memberships on your own website.

BUDDYBOSS APP

Your own branded app on iOS and Android.

DONE FOR YOU

We build, launch and run it for you.

BuddyBoss website and mobile app

Web + App Done For You

$4,999 flat

Web Scale + Done For You Web

App Launch + Done For You App

PRICING

Web Pricing

Launch, Scale and Done For You Web.

From

$199

first year

App Pricing

Solo, Launch and Done For You App.

From

$499

first year

SITE + APP

Web + App Done For You

Your site and your app, built and run for you.

$4,999

flat, never rises

How to Hide the Logout Confirmation Message

Updated

Introduction

The logout confirmation message (for example, “Are you sure you want to log out?”) is not generated by BuddyBoss itself. In most cases, it comes from WordPress core behavior or a third-party plugin installed on your site. BuddyBoss does not provide a built-in setting to disable this confirmation. As a workaround, you can bypass the confirmation by redirecting users immediately after logout using a small custom function added to your active theme. This guide explains how to hide the Logout Confirmation Message.

Custom Workaround

Before proceeding, make sure you have a complete site backup.

  1. Go to Appearance > Theme Editor in your WordPress admin dashboard.
  2. Under Select theme to edit, choose your active theme (preferably a BuddyBoss Child Theme), then click Select.
  3. From the Theme Files list, open Theme Functions (functions.php).
  4. Add the following code just before the closing PHP tag (?>):

function custom_logout_redirect() {

    wp_redirect( home_url() ); // Redirect to homepage (change this URL if needed)

    exit();

}

add_action( ‘wp_logout’, ‘custom_logout_redirect’ );

  1. Click Update File to save the changes.

Once added, users will be redirected immediately after logging out, preventing the logout confirmation message from appearing.

Note: Modifications are typically considered custom work, but we are making an exception in this case. Please review the BuddyBoss Support Policy.

Troubleshooting and FAQs

Q: The logout confirmation message is still showing.
A: The message may be injected by a third-party plugin or JavaScript. Try temporarily disabling plugins to identify the source. Also ensure the code is placed in your child theme’s functions.php.

Q: Can I redirect users to a different page after logout?
A: Yes. Replace home_url() with any URL you prefer, for example:
wp_redirect( site_url(‘/goodbye/’) );

Q: Will this affect admin users as well?
A: Yes. This redirect applies to all users who log out. You can add role-based conditions if you want different behavior for admins.

Q: Can I revert this change later?
A: Yes. Simply remove the code from functions.php and save the file.

Was this article helpful?

Subscribe to Our Newsletter

This field is for validation purposes and should be left unchanged.
This field is hidden when viewing the form

Can’t find the answer you’re looking for?

Our support team is here to help with anything the docs don’t cover.