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.
Where it appears
Section titled “Where it appears”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.
Behaviour
Section titled “Behaviour”- 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.
When the button is hidden
Section titled “When the button is hidden”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.
Marketplace support
Section titled “Marketplace support”This button is a Dokan-only feature. It is not added to WCFM, WC Vendors, or WooCommerce Product Vendors store pages.
Customizing
Section titled “Customizing”Developers can suppress the button or change its label with filters. See Hooks and Filters.

