WordPress at a glance
function is not described

wp_caption_input_textarea() WP 3.4.0

Output a textarea element for inputting an attachment caption.

No Hooks.


String. HTML markup for the textarea element.


wp_caption_input_textarea( $edit_post );
$edit_post(WP_Post) (required)
Attachment WP_Post object.

Code of wp caption input textarea: wp-admin/includes/media.php WP 5.2.2

function wp_caption_input_textarea( $edit_post ) {
	// Post data is already escaped.
	$name = "attachments[{$edit_post->ID}][post_excerpt]";

	return '<textarea name="' . $name . '" id="' . $name . '">' . $edit_post->post_excerpt . '</textarea>';