Skip to main content

better_messages_mini_chat_button

WebSocket Version Guide
This functionality available only with WebSocket Version

Mini chat button shortcode

Shows mini chat button (opens mini chat with user on click)

This button will work only if Mini Chats option is enabled in plugin settings

AttributeWhats it forDefault
textSets button text label"Private Message"
user_id

Set User ID with whom conversation will be started

Post author of WordPress Post/Page
subject

Set subject for conversation
If conversation already exists it will be ignored

None
unique_tag

This will be usefully if you want to create unique conversations between buyers and seller, when they're discussing different products.


For example set unique_tag to product_123 to create or open additional unique conversation between 2 members based on the tag.

None
class

Sets additional class to button html element.
Useful for additional CSS styling.

None
[better_messages_mini_chat_button text="Private Message" subject="New conversation subject" class="extra-class"]