better_messages_pm_button
Prefer better_messages_live_chat_button for new implementations — it auto-decides between mini chat and full page based on plugin settings, and reliably handles guest visitors.
Private message button shortcode
Shows private message button
| Attribute | Whats it for | Default |
|---|---|---|
| text | Sets button text label | "Private Message" |
| user_id | Set User ID with whom conversation will be started | Post author of WordPress Post/Page |
| subject | Prefill subject at the new conversation screen | None |
| message | Prefill message at the new conversation screen | None |
| target | Set | _self |
| fast_start | Set | 1 (follow global setting) |
| url_only | Set | 0 |
| class | Sets additional class to button html element. | None |
[better_messages_pm_button text="Private Message" subject="Have a question to you" message="Lorem Ipsum is simply dummy text." target="_self" class="extra-class" fast_start="0" url_only="0"]
Frequently asked questions#
Why is this marked legacy?#
The newer [better_messages_live_chat_button] shortcode handles guest authorization, auto-decides between mini-chat and full-page, and supports AI bot targeting. Use it for new implementations.
Will this shortcode keep working?#
Yes — backwards-compatible. Existing pages using [better_messages_pm_button] continue to work indefinitely.
What's fast_start?#
With fast_start="1", clicking the button opens the conversation screen directly, skipping the new-conversation form. The subject and message prefills are ignored in fast-start mode.
Why might I still use this over the new shortcode?#
pm_button has a message prefill attribute (the new shortcode doesn't, since it's geared toward universal use). If you specifically need to prefill the first message, this remains useful.
Does this work for guests?#
No — the legacy shortcode doesn't include the guest authorization flow. Use better_messages_live_chat_button for guest-compatible usage.
See also#
- better_messages_live_chat_button — recommended replacement
- better_messages_mini_chat_button — other legacy alternative
- better_messages_user_conversation — embed the conversation inline instead of as a button