WordPress开发者和主题制作者的搜索引擎



wp_caption_input_textarea ›

Since3.4.0
已弃用n/a
wp_caption_input_textarea ( $edit_post )
参数:
  • (WP_Post) $edit_post Attachment WP_Post object.
    Required: Yes
返回:
  • (string) HTML markup for the textarea element.
定义在:
文档:

Output 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 '<textarea name="' . $name . '" id="' . $name . '">' . $edit_post->post_excerpt . '</textarea>';
}