Title: Feature Request
Last modified: May 26, 2026

---

# Feature Request

 *  Resolved [N.g](https://wordpress.org/support/users/loralora/)
 * (@loralora)
 * [1 week, 6 days ago](https://wordpress.org/support/topic/feature-request-1090/)
 * Hello
    1. Go to the MultivendorX vendor dashboard:
       at website/dashboard/bm-messages/ –
       there’s a page with messages, but the link to dashboard/bm-messages/ in the 
       sidebar is missing.
    2. Could you please add a condition so that if a user isn’t allowed to write messages,
       the “My Account” tab won’t be visible to them?
 * Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Andrij Tkachenko](https://wordpress.org/support/users/andrijtkachenko/)
 * (@andrijtkachenko)
 * [1 week, 6 days ago](https://wordpress.org/support/topic/feature-request-1090/#post-18919814)
 * Hi there!
   Will fix in next update.Thanks!
 *  Thread Starter [N.g](https://wordpress.org/support/users/loralora/)
 * (@loralora)
 * [1 week, 5 days ago](https://wordpress.org/support/topic/feature-request-1090/#post-18920997)
 * Hello,
    1. Thanks for the quick response! – the “Messages” tab has appeared in the sidebar
       in MultivendorX – thank you.
 * 2. Sorry, I didn’t explain correctly – I meant to hide the messages tab if you
   select “Show on WooCommerce account page” in “General” – Message Locations.
 * i.e., if the following is selected in Role Restrictions:
    1. No one can message each other.
    2. But allow: From “user role” To “user role.”
 * Then is there a way to disable the “Show on WooCommerce account page” tab for
   all other user roles?
 * Users think they’ve been blocked or restricted, when they shouldn’t see this 
   functionality at all.
 * Perhaps you have some code that could help?
 * Thank you again.
 *  Plugin Support [Andrij Tkachenko](https://wordpress.org/support/users/andrijtkachenko/)
 * (@andrijtkachenko)
 * [1 week, 5 days ago](https://wordpress.org/support/topic/feature-request-1090/#post-18921018)
 * Hi there!
   Something like this should work to remove My Account tab:
 *     ```wp-block-code
       add_filter( 'woocommerce_account_menu_items', function( $items ) {    if ( ! function_exists( 'Better_Messages' ) ) {        return $items;    }    $user_id = get_current_user_id();    if ( $user_id <= 0 ) {        return $items;    }    // Administrators always see the tab.    if ( user_can( $user_id, 'manage_options' ) ) {        return $items;    }    $settings = Better_Messages()->settings;    // Only act in "No one can message, but allow from X to Y" mode.    if ( ( $settings['restrictRoleType'] ?? '' ) !== 'disallow' ) {        return $items;    }    // If the user has any allowed-target roles, keep the tab visible.    if ( ! empty( Better_Messages()->functions->get_restrict_to_roles( $user_id ) ) ) {        return $items;    }    // BM uses one of two menu keys depending on Settings -> General -> Message Locations:    //  - 'better-messages'                  when the side-tab integration is enabled    //  - the wooCommerceMessagesSlug value  when BM is the primary "chat page"    $keys_to_strip = array( 'better-messages' );    $slug = $settings['wooCommerceMessagesSlug'] ?? '';    if ( $slug !== '' ) {        $keys_to_strip[] = $slug;    }    foreach ( $keys_to_strip as $key ) {        unset( $items[ $key ] );    }    return $items;}, 30 );
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffeature-request-1090%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/bp-better-messages/assets/icon-256x256.png?rev=2835105)
 * [Better Messages - Chat Rooms, Group Chat, Private Messages & AI Chat Bots](https://wordpress.org/plugins/bp-better-messages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bp-better-messages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bp-better-messages/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-better-messages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-better-messages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-better-messages/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Andrij Tkachenko](https://wordpress.org/support/users/andrijtkachenko/)
 * Last activity: [1 week, 5 days ago](https://wordpress.org/support/topic/feature-request-1090/#post-18921018)
 * Status: resolved