post_excerpt_meta_box

Display post excerpt form fields.

Description

post_excerpt_meta_box( (object) $post ); 

Parameters (1)

0. $post (object)
The post.

Usage

  1. if ( !function_exists( 'post_excerpt_meta_box' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/meta-boxes.php'; 
  3.  
  4. // The post. 
  5. $post = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = post_excerpt_meta_box($post); 
  9.  

Defined (1)

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

/wp-admin/includes/meta-boxes.php  
  1. function post_excerpt_meta_box($post) { 
  2. ?> 
  3. <label class="screen-reader-text" for="excerpt"><?php _e('Excerpt') ?></label><textarea rows="1" cols="40" name="excerpt" id="excerpt"><?php echo $post->post_excerpt; // textarea_escaped ?></textarea> 
  4. <p><?php 
  5. printf( 
  6. /** translators: %s: Codex URL */ 
  7. __( 'Excerpts are optional hand-crafted summaries of your content that can be used in your theme. <a href="%s">Learn more about manual excerpts</a>.' ),  
  8. __( 'https://codex.wordpress.org/Excerpt' ) 
  9. ); 
  10. ?></p> 
  11. <?php