Found a filter that works for this situation
function media_to_editor($html, $send_id, $attachment ){
$attachment_url = wp_get_attachment_url($send_id);
return $attachment_url;
}
add_filter('media_send_to_editor', 'media_to_editor', 10, 2);
Found a filter that works for this situation
function media_to_editor($html, $send_id, $attachment ){
$attachment_url = wp_get_attachment_url($send_id);
return $attachment_url;
}
add_filter('media_send_to_editor', 'media_to_editor', 10, 2);