BP_Email_Tokens::__construct()

Constructor.

Description

Source

File: bp-core/classes/class-bp-email-tokens.php

	public function __construct() {
		// set new email tokens added in BuddyBoss 1.0.0
		add_filter( 'bp_email_set_tokens', array( $this, 'set_tokens' ), 10, 3 );

		//tokens for email after a new message is received, does not contain usable info about sender user
		//we need to acquire this info before we process tokens for that email
		//priority 9 is importent
		add_action( 'messages_message_sent', array( $this, 'messages_message_sent' ), 9 );
	}

Changelog

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.