[blog_messages]

Loads the blog messages template. It is necessary to have this shortcode added to the page content which you set as the messaging page.

[bm-messages-link]

Returns the messages link (URL), where any user can consult their messages or compose new ones.

[bm-chat-link]

Attributes:

recipient: required, user ID for the recipient

Returns a link to the chat shared between current user and the selected recipient. In other words, directs this user to chat with the target recipient.

[bm-recent-unread-count]

Attributes:

unique: optional,  count one unread message per chat, defaults to true

Generally speaking, this will return the count of unread messages which the current user has received. It does not include the ones that were read before and marked unread. If unique property is set to false (e.g unique=0) for the shortcode, it will now count the unread chats and not messages.

[bm-unread-count]

Attributes:

unique: optional,  count one unread message per chat, defaults to true

This will return the count of unread messages which the current user has received, and it includes the ones that were read before and marked unread. If unique property is set to false (e.g unique=0) for the shortcode, it will now count the unread chats and not messages.

[bm-chat-messages-count]

Attributes:

recipient: required, the  contact user ID
part: optional, defaults to false (all messages)

Counts messages per chat. The subject chat will be the one shared between current user and the selected recipient. Set part property to `received` to count the received messages, `sent` for the sent ones, or leave it empty for the total (sent+received) count.

[bm-chat-unread-count]

Attributes:

recipient: required, user ID for the recipient

Returns the number of unread messages in the chat made with the selected recipient.

[bm-chats-count]

Counts all the chats this user has, not including archives.

[bm-archives-count]

Counts all the archives this user has.

[bm-all-chats-count]

Counts all the chats this user has, archives included.

[bm-messages-count]

Attributes:

user_id: optional, target user ID, defaults to current user.

Counts all the messages (sent and received) by a given user. If you set the user_id property, it will count messages for that user. Otherwise and if a user is logged in, the count will be for the current logged-in user.