bp_email_plaintext_metabox( WP_Post $post )

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


Description Description

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


Top ↑

Parameters Parameters

$post

(WP_Post) (Required)


Source 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', 'buddypress' );
	?>
	</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.', 'buddypress' ); ?></p>

	<?php
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.