bp_email_plaintext_metabox( WP_Post $post )

Customized version of the ‘Excerpt’ metabox for our ‘bp-email’ post type.

Description

We are using the ‘Excerpt’ metabox as our plain-text email content editor.

Parameters

$post

(Required)

Source

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

function bp_email_plaintext_metabox( $post ) {
?>

	<label class="screen-reader-text" for="excerpt"><?php
		/* translators: accessibility text */
		_e( 'Plain text email content', 'buddyboss' );
	?></label><textarea rows="5" cols="40" name="excerpt" id="excerpt"><?php echo $post->post_excerpt; // textarea_escaped ?></textarea>

	<p><?php _e( 'Most email clients support HTML email. However, some people prefer to receive plain text email. Enter a plain text alternative version of your email here.', 'buddyboss' ); ?></p>

<?php
}

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.