wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_caption_input_textarea › WordPress Function

Since3.4.0
Deprecatedn/a
wp_caption_input_textarea ( $edit_post )
Parameters:
  • (WP_Post) $edit_post Attachment WP_Post object.
    Required: Yes
Returns:
  • (string) HTML markup for the textarea element.
Defined at:
Codex:

Outputs a textarea element for inputting an attachment caption.



Source

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>';
}