bp_email_plaintext_metabox

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

Description

bp_email_plaintext_metabox( (WP_Post) $post ); 

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

Parameters (1)

0. $post (WP_Post)
The post.

Usage

  1. if ( !function_exists( 'bp_email_plaintext_metabox' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/admin/bp-core-admin-functions.php'; 
  3.  
  4. // The post. 
  5. $post = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_email_plaintext_metabox($post); 
  9.  

Defined (1)

The function is defined in the following location(s).

/bp-core/admin/bp-core-admin-functions.php  
  1. function bp_email_plaintext_metabox( $post ) { 
  2. ?> 
  3.  
  4. <label class="screen-reader-text" for="excerpt"><?php 
  5. /** translators: accessibility text */ 
  6. _e( 'Plain text email content', buddypress ); 
  7. ?></label><textarea rows="5" cols="40" name="excerpt" id="excerpt"><?php echo $post->post_excerpt; // textarea_escaped ?></textarea> 
  8.  
  9. <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> 
  10.  
  11. <?php