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:
audio_send_to_editor_urlfile_send_to_editor_urlvideo_send_to_editor_url
Parameters
$htmlstring- HTML markup sent to the editor.
$srcstring- Media source URL.
$titlestring- Media title.
Source
$html = apply_filters( "{$type}_send_to_editor_url", $html, sanitize_url( $src ), $title );
Changelog
| Version | Description |
|---|---|
| 3.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.