Filters the HTML markup for a media item sent to the editor.
$htmlstring$send_idint$attachmentarraywp-admin/includes/ajax-actions.php:3407wp_ajax_send_attachment_to_editor()wp-admin/includes/media.php:876media_upload_form_handler() * @see wp_get_attachment_metadata() * * @param string $html HTML markup for a media item sent to the editor. * @param int $send_id The first key from the $_POST['send'] data. * @param array $attachment Array of attachment metadata. */ $html = apply_filters( 'media_send_to_editor', $html, $send_id, $attachment ); media_send_to_editor( $html ); } return $errors;}Introduced in 2.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.