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.
Attribute | Whats it for | Default |
---|---|---|
text | Sets button text label | "Live Chat" |
user_id | Set User ID with whom conversation will be started | Post author of WordPress Post/Page |
type | Type of html element, can be button on link | button |
subject | Set subject for conversation | None |
target | 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 | None |
class | Sets additional class to button html element. | None |
[better_messages_live_chat_button type="button" unique_tag="product_chat_15" text="Product Chat" user_id="5" subject="Product Chat Subject"]