bp_admin_email_add_codex_notice()

In emails editor, add notice linking to token documentation on Codex.

Description

Source

File: bp-core/admin/bp-core-admin-functions.php

function bp_admin_email_add_codex_notice() {
	if ( get_current_screen()->post_type !== bp_get_email_post_type() ) {
		return;
	}

	bp_core_add_admin_notice(
		sprintf(
			__( 'Phrases wrapped in braces <code>{{ }}</code> are email tokens. <a href="%s">Learn about email tokens</a>.', 'buddyboss' ),
			bp_core_help_docs_link( 'components/emails/email-tokens.md' )
		),
		'error'
	);
}

Changelog

Changelog
Version Description
BuddyPress 2.5.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.