显示摘录后表单字段。

原型

post_excerpt_meta_box( object $post )

参数

$post (object) (Required)

源文件

路径:wp-admin/includes/meta-boxes.php

<?php
...
function post_excerpt_meta_box($post) {
?>
<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>
<p><?php
	printf(
		/* translators: %s: Codex 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://codex.wordpress.org/Excerpt' )
	);
?></p>
<?php
}
...
?>

其他

英文文档:https://developer.wordpress.org/reference/functions/post_excerpt_meta_box/