Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_caption_input_textarea ›

Da3.4.0
Deprecaton/a
wp_caption_input_textarea ( $edit_post )
Parametri:
  • (WP_Post) $edit_post Attachment WP_Post object.
    Richiesto:
Ritorna:
  • (string) HTML markup for the textarea element.
Definito a:
Codex:

Output a textarea element for inputting an attachment caption.



Sorgenti

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