Private Messages shortcodes
Overview
This document provides instructions on how to use shortcodes of the Private Messages extension.
Ultimate Member uses shortcodes to allow users to perform certain actions as well as display forms and templates. You may use shortcodes in the post (page) content and text widgets.
Contents
- [ultimatemember_message_button] - Show the message button of a specific user.
- [ultimatemember_message_count] - Show the total unread messages of a specific user.
- [ultimatemember_messages] - Show the message box of a specific user.
Shortcodes
[ultimatemember_message_button] #
This shortcode displays a message button for a specific user.
Attributes
Key | Type | Default | Description |
---|---|---|---|
user_id | integer | Post author ID (if post or page) or 0 (for other screens) |
Identification number of the user. |
Example
[ultimatemember_message_button user_id="123"]
[ultimatemember_message_count] #
This shortcode displays a total amount of unread messages for a specific user.
Attributes
Key | Type | Default | Description |
---|---|---|---|
user_id | integer | Current user ID or 0 (for guests) |
Identification number of the user. |
Example
[ultimatemember_message_count user_id="123"]
[ultimatemember_messages] #
This shortcode displays a message box for a specific user.
Attributes
Key | Type | Default | Description |
---|---|---|---|
user_id | integer | Current user ID or 0 (for guests) |
Identification number of the user. |
Example
[ultimatemember_messages user_id="123"]