BP_Email_Tokens::get_tokens()
Get email tokens
Description
Return
(array)
Source
File: bp-core/classes/class-bp-email-tokens.php
public function get_tokens() {
$tokens = array(
'group.small_card' => array(
'function' => array( $this, 'token__group_card_small' ),
'description' => __( 'Display the group card with minimal group details.', 'buddyboss' ),
),
'group.card' => array(
'function' => array( $this, 'token__group_card' ),
'description' => __( 'Display the group card with more details like group cover photo etc.', 'buddyboss' ),
),
'group.description' => array(
'function' => array( $this, 'token__group_description' ),
'description' => __( 'Display the group description.', 'buddyboss' ),
),
'group.invite_message' => array(
'function' => array( $this, 'token__group_invite_message' ),
'description' => __( 'Display the invite message.', 'buddyboss' ),
),
'message' => array(
'function' => array( $this, 'token__message' ),
'description' => __( 'Display the sent message, along with sender\'s photo and name.', 'buddyboss' ),
),
'sender.url' => array(
'function' => array( $this, 'token__sender_url' ),
'description' => __( 'Display the link to the member profile who sent the message. Only works in email that is sent to a member when someone sends him/her a message.', 'buddyboss' ),
),
'member.card' => array(
'function' => array( $this, 'token__member_card_small' ),
'description' => __( 'Display the member card with minimal member details.', 'buddyboss' ),
),
'status_update' => array(
'function' => array( $this, 'token__status_update' ),
'description' => __( 'Display the status update, along with member\'s photo and name.', 'buddyboss' ),
),
'activity_reply' => array(
'function' => array( $this, 'token__activity_reply' ),
'description' => __( 'Display the reply to update, along with member\'s photo and name.', 'buddyboss' ),
),
'poster.url' => array(
'function' => array( $this, 'token__poster_url' ),
'description' => __( 'Display the link to the member profile who posted the update.', 'buddyboss' ),
),
'discussion.content' => array(
'function' => array( $this, 'token__discussion_content' ),
'description' => __( 'Display the discussion content.', 'buddyboss' ),
),
'reply.content' => array(
'function' => array( $this, 'token__reply_content' ),
'description' => __( 'Display the reply content.', 'buddyboss' ),
),
);
return $tokens;
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.