Skip to main content

better_messages_live_chat_button

Live chat button shortcode

This shortcode is designed to be universal button for starting new conversation or continue existing conversation with same unique tag with any user on your website.

This shortcode will point users to login page if they are not logged in, if a user is logged in, it will open a new conversation or continue existing one with the same unique tag based on plugin settings. For example, if mini chats are enabled, it will open mini chat, but if mini chats are disabled it will open full page chat.

AttributeWhats it forDefault
textSets button text label"Live Chat"
user_id

Set User ID with whom conversation will be started

Post author of WordPress Post/Page
typeType of html element, can be button on linkbutton
subject

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

None
target

HTML a target attribute

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_live_chat_button type="button" unique_tag="product_chat_15" text="Product Chat" user_id="5" subject="Product Chat Subject"]