Skip to main content

better_messages_pm_button

Private message button shortcode

Shows private message button

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
subjectPrefill subject at the new conversation screenNone
messagePrefill message at the new conversation screenNone
target

Set _self to open in same page
Set _blank to open in new browser tab

_self
fast_start

Set 1 to open conversation screen directly by skipping the new conversation screen.

subject and message attributes does not works in this mode

0
url_only

Set 1 to not render button, but display just URL

0
class

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

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"]