Filters the URL sent to the editor for a specific media type.
Description
The dynamic portion of the hook name, $type, refers to the type of media being sent. Possible hook names include: <ul> <li>audio_send_to_editor_url</li> <li>file_send_to_editor_url</li> <li>video_send_to_editor_url</li> </ul>
946* @since 3.3.0947*948* @param string$htmlHTML markup sent to the editor.949* @param string$src Media source URL.950* @param string$title Media title.951*/952$html=apply_filters("{$type}_send_to_editor_url",$html,sanitize_url($src),$title);953}else{954$align='';955$alt=esc_attr(wp_unslash($_POST['alt']));956957if(isset($_POST['align'])){958$align=esc_attr(wp_unslash($_POST['align']));
History
Introduced in 3.3.0. Unchanged from 6.7.7 through 7.1.0.