post_excerpt_meta_box()WP 2.6.0

Displays post excerpt form fields.

No Hooks.

Return

null. Nothing (null).

Usage

post_excerpt_meta_box( $post );
$post(WP_Post) (required)
Current post object.

Changelog

Since 2.6.0 Introduced.

post_excerpt_meta_box() code WP 6.5.4

<?php
function post_excerpt_meta_box( $post ) {
	?>
<label class="screen-reader-text" for="excerpt">
	<?php
	/* translators: Hidden accessibility text. */
	_e( 'Excerpt' );
	?>
</label><textarea rows="1" cols="40" name="excerpt" id="excerpt"><?php echo $post->post_excerpt; // textarea_escaped ?></textarea>
<p>
	<?php
	printf(
		/* translators: %s: Documentation URL. */
		__( '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>.' ),
		__( 'https://wordpress.org/documentation/article/what-is-an-excerpt-classic-editor/' )
	);
	?>
</p>
	<?php
}