audio_send_to_editor_url filter-hookWP 3.3.0

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

This is one of the variants of the dynamic hook (type)_send_to_editor_url

Usage

add_filter( 'audio_send_to_editor_url', 'wp_kama_audio_send_to_editor_url_filter', 10, 3 );

/**
 * Function for `audio_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_audio_send_to_editor_url_filter( $html, $src, $title ){

	// filter...
	return $html;
}
$html(string)
HTML markup sent to the editor.
$src(string)
Media source URL.
$title(string)
Media title.

Changelog

Since 3.3.0 Introduced.

Where the hook is called

wp_media_upload_handler()
audio_send_to_editor_url
wp-admin/includes/media.php 920
$html = apply_filters( "{$type}_send_to_editor_url", $html, esc_url_raw( $src ), $title );

Where the hook is used in WordPress

Usage not found.