On this page
apply_filters( 'media_send_to_editor', string $html, int $send_id, array $attachment )
Filters the HTML markup for a media item sent to the editor.
Description
See also
Parameters
$htmlstring-
HTML markup for a media item sent to the editor.
$send_idint-
The first key from the $_POST[
'send'] data. $attachmentarray-
Array of attachment metadata.
Source
File: wp-admin/includes/media.php. View all references
$html = apply_filters( 'media_send_to_editor', $html, $send_id, $attachment );
Related
Used By
| Used By | Description |
|---|---|
| media_upload_form_handler() wp-admin/includes/media.php | Handles form submissions for the legacy media uploader. |
| wp_ajax_send_attachment_to_editor() wp-admin/includes/ajax-actions.php | Ajax handler for sending an attachment to the editor. |
Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/media_send_to_editor