wp_caption_input_textarea() – Output a textarea element for inputting an attachment caption.
You appear to be a bot. Output may be restricted
Description
Outputs a textarea element for inputting an attachment caption.
Usage
$string = wp_caption_input_textarea( $edit_post );
Parameters
- $edit_post
- ( WP_Post ) required – Attachment WP_Post object.
Returns
string HTML markup for the textarea element.
Source
File name: wordpress/wp-admin/includes/media.php
Lines:
1 to 6 of 6
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>'; }