Skip to content

Message Vendor Button

BuddyVendor adds a Message Vendor button to Dokan store pages so shoppers can start a private conversation with the vendor through BuddyPress or BuddyBoss messaging.

The button is rendered in the Dokan single-store sidebar. It is currently wired to the Dokan store sidebar and works with both BuddyPress and BuddyBoss messaging.

  • Logged-in visitors see a Message Vendor button that opens the private-message compose screen, pre-addressed to the vendor.
  • Guests see a Login to Message Vendor button that sends them to the login screen and returns them to the store page afterward.
  • The button styles itself to match the active platform: it uses BuddyBoss button styling when BuddyBoss is detected, and Dokan button styling otherwise.

The button does not render when:

  • BuddyPress or BuddyBoss is not available.
  • The BuddyPress or BuddyBoss Messages component is not active.
  • The visitor is viewing their own store (you cannot message yourself).
  • The vendor user cannot be resolved.

This button is a Dokan-only feature. It is not added to WCFM, WC Vendors, or WooCommerce Product Vendors store pages.

Developers can suppress the button or change its label with filters. See Hooks and Filters.