$type_send_to_editor_url filter allows you to modify the HTML markup sent to the editor when inserting non-image embed links into the editor.
$type part of the filter hook accepts
Filtering image embed links sent to the editor is handled separately via the
It is evaluated in:
wp_ajax_send_link_to_editor()in the wp-admin/includes/ajax-actions.php file
wp_media_upload_handler()in the wp-admin/includes/media.php file
$type_send_to_editor_url accepts 3 arguments:
$htmlThe HTML link markup to send to the editor.
$urlThe media item source URL.
$titleThe media item title.
The following shows how you might add a
View the code example on Gist.