/*Reverse sticky header*/

Understanding Email Tokens in BuddyBoss

Introduction:
Email Tokens in the BuddyBoss Platform are placeholders for dynamic content used in email notifications. These tokens automatically insert personalized details such as user names, links, and other contextual information, enhancing the relevance of your emails. Tokens can be wrapped in either two curly braces {{ }} or three curly braces {{{ }}}. Tokens wrapped in three curly braces are not escaped on merging, which is important for including certain content such as links.

This guide covers:

  1. Global Tokens – Applicable across all email types.
  2. Registration Tokens – Used for account registration and activation emails.
  3. Group Tokens – Used in group-related notifications.
  4. Forum Tokens – Used in forum discussions and replies.
  5. Activity Tokens – Used for mentions and activity updates.
  6. Private Messaging Tokens – Used for private message notifications.
  7. Connection Tokens – Used for connection (friend request) notifications.
  8. Invites Tokens – Used for community invitation emails.

1. Global Tokens

These tokens can be used in any email template and provide general information about the site or recipient.

TokenDescription
{{site.admin-email}}Email address of the site administrator.
{{{site.url}}}URL of the site (value of home_url()).
{{site.description}}Site’s description (blog description).
{{site.name}}Site’s name (blog name).
{{recipient.email}}Email address of the recipient.
{{recipient.name}}Display name of the recipient.
{{recipient.username}}Username (login) of the recipient.
{{{unsubscribe}}}Link to recipient’s email notifications settings.
{{email.subject}}The subject line of the email.

2. Registration Tokens

Used in emails related to account registration, activation, and email verification.

Activation Email

Sent when a user registers for an account.

TokenDescription
{{{activate.url}}}Link to account activation page (includes activation key).
{{key}}Activation key for the new account.
{{user.email}}Email address of the new user.
{{user.id}}User ID of the new account.

Email Verification

Sent when a user changes their email address.

TokenDescription
{{{verify.url}}}Link for verifying the new email address.
{{displayname}}Display name of the recipient.
{{old-user.email}}Previous email address of the user.
{{user.email}}New email address of the user.

3. Group Tokens

Used in group-related notifications such as membership requests, invitations, and promotions.

Group Details Updated

Sent when group details are changed.

TokenDescription
{{changed_text}}Description of the updated details.
{{{group.url}}}Link to the group.
{{group.name}}Name of the group.
{{{group.small_card}}}Group card showing group photo and details.

Membership Request

Sent when a member requests to join a group.

TokenDescription
{{group.name}}Name of the group.
{{{group-requests.url}}}Link to manage group membership requests.
{{requesting-user.name}}Name of the user requesting membership.
{{{member.card}}}Profile card of the requesting user.

4. Forum Tokens

Used in forum-related notifications such as new discussions and replies.

New Discussion

Sent when a new forum discussion is created.

TokenDescription
{{poster.name}}Name of the user who created the discussion.
{{{discussion.url}}}Link to the newly created discussion.
{{discussion.title}}Title of the new discussion.
{{{discussion.content}}}Content of the new discussion.

New Reply

Sent when a user replies to a forum discussion.

TokenDescription
{{poster.name}}Name of the member who replied.
{{{reply.content}}}Content of the reply.
{{{thread.url}}}Link to the discussion thread.

5. Activity Tokens

Used for mentions, replies, and status updates in activity feeds.

Mention Notification

Sent when a user is mentioned in an activity update.

TokenDescription
{{usermessage}}Content of the activity update.
{{{mentioned.url}}}Link to the activity item.
{{poster.name}}Name of the activity author.

6. Private Messaging Tokens

Used for notifications related to private messages and replies.

TokenDescription
{{sender.name}}Display name of the message sender.
{{{message}}}Content of the message.
{{{message.url}}}Link to the message thread.

7. Connection Tokens

Used for connection (friend request) notifications.

New Connection Request

Sent when a member sends a friend request.

TokenDescription
{{initiator.name}}Display name of the request initiator.
{{{initiator.url}}}Link to the initiator’s profile.
{{{friend-requests.url}}}Link to manage friendship requests.

Request Accepted

Sent when a friend request is accepted.

TokenDescription
{{friend.name}}Display name of the new connection.
{{{friendship.url}}}Link to the recipient’s profile.

8. Invites Tokens

Used when a member invites someone to join the community.

TokenDescription
{{inviter.name}}Name of the member who sent the invite.
{{{site.url}}}URL of the site.

Best Practices for Using Tokens

  • Use {{ }} for regular text placeholders and {{{ }}} for unescaped content like links.
  • Double-check token placement to ensure personalized and dynamic content.
  • Test emails by sending to yourself to verify the tokens render correctly.

  • Customizing Email Layout in BuddyBoss
  • Managing Notifications in BuddyBoss
  • Improving Email Deliverability in WordPress
Was this article helpful?

Related Articles

To speak to our Agency consultant, fill in the form found at our Contact Page.

"*" indicates required fields

Get Started

Enter your name and email address to get started with your project...

Name*