Function: image_media_send_to_editor

image_media_send_to_editor( string $html, integer $attachment_id, array $attachment )

Retrieves the media element HTML to send to the editor.

Parameters

Name Type(s) Default Value Description
$html string
$attachment_id integer
$attachment array

Returns

string

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.