wp_caption_input_textarea

函数


wp_caption_input_textarea ( $edit_post )
参数
  • (WP_Post)
    $edit_post
    Attachment WP_Post object.
    Required:
返回值
  • (string) HTML markup for the textarea element.
定义位置
  • wp-admin/includes/media.php
    , line 1290
引入
3.4.0
弃用

Outputs a textarea element for inputting an attachment caption.

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

	return '';
}