(type)_send_to_editor_url filter-hookWP 3.3.0

Filters the URL sent to the editor for a specific media type.

The dynamic portion of the hook name, $type, refers to the type of media being sent.

Possible hook names include:


add_filter( '(type)_send_to_editor_url', 'wp_kama_type_send_to_editor_url_filter', 10, 3 );

 * Function for `(type)_send_to_editor_url` filter-hook.
 * @param string $html  HTML markup sent to the editor.
 * @param string $src   Media source URL.
 * @param string $title Media title.
 * @return string
function wp_kama_type_send_to_editor_url_filter( $html, $src, $title ){

	// filter...
	return $html;
HTML markup sent to the editor.
Media source URL.
Media title.


Since 3.3.0 Introduced.

Where the hook is called

wp-admin/includes/media.php 934
$html = apply_filters( "{$type}_send_to_editor_url", $html, sanitize_url( $src ), $title );
wp-admin/includes/ajax-actions.php 3438
$html = apply_filters( "{$type}_send_to_editor_url", $html, $src, $link_text );

Where the hook is used in WordPress

Usage not found.