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 Use the Username Instead of the Nickname for Direct Messaging

Updated

Introduction

By default, BuddyBoss uses the user’s nickname when opening the direct message composer from a user profile. If you prefer to use the actual username instead, you can apply a small custom code change in your active theme.

Note: BuddyBoss does not provide a built-in setting for this behavior. The steps below use a custom workaround.

Custom Workaround

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

  1. In your WordPress admin dashboard, go to Appearance > Theme Editor.
  2. Under Select theme to edit, choose your active theme (preferably BuddyBoss Child Theme), then click Select.
  3. From the Theme Files list, click Theme Functions (functions.php).
  4. Paste the following code just before the closing PHP tag (?>):
function bb_override_button_message() {
    return apply_filters(
        'bp_get_send_private_message_link',
        wp_nonce_url(
            bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r=' . bp_core_get_username( bp_displayed_user_id() )
        )
    );
}
add_filter( 'bp_get_send_private_message_link', 'bb_override_button_message' );
  1. Click Update File to save your changes.

Note: Any modifications like this are considered custom work. Please review the BuddyBoss Support Policy for details.

Troubleshooting and FAQs

Q: The message button still uses the nickname, what should I check?
A: Make sure the code is in the active theme’s functions.php and clear any caches.

Q: Should I add this code to the parent theme or child theme?
A: Use a child theme to avoid losing changes during updates.

Q: Will this affect existing messages?
A: No, it only changes how the recipient is populated when clicking the Message button.

Q: Can I revert this change easily?
A: Yes, remove the code from functions.php and save.

Q: Who can I contact for further assistance?
A: Check the BuddyBoss Support Policy or consult a developer.

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.