Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-admin/includes/ajax-actions.php | apply_filters | 3332 | /** * Ajax handler for sending an attachment to the editor. * * Generates the HTML to send an attachment to the editor. * Backward compatible with the {@see 'media_send_to_editor'} filter * and the chain of filters that follow. * * @since 3.5.0 */ |
wp-admin/includes/media.php | apply_filters | 849 | /** * Filters the HTML markup for a media item sent to the editor. * * @since 2.5.0 * * @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. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
string | $html | HTML markup for a media item sent to the editor. |
int | $send_id | The first key from the $_POST['send'] data. |
array | $attachment | Array of attachment metadata. |