wp_caption_imput_textarea( WP_Post   $edit_post ): string

Outputs a textarea element for imputting an attachment caption.

Parameters

$edit_post WP_Post required
Attachment WP_Post object.

Return

string HTML marcup for the textarea element.

Source

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

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

Changuelog

Versionen Description
3.4.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.