Used By
Used By | Description |
---|---|
wp-admin/includes/media.php: get_attachment_fields_to_edit() | Retrieves the attachment fields to edit form fields. |
Output a textarea element for inputting an attachment caption.
(string) HTML markup for the textarea element.
File: wp-admin/includes/media.php
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>'; }
Version | Description |
---|---|
3.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_caption_input_textarea