media_send_to_editor WordPress Filter Hook
The media_send_to_editor hook is used to send HTML content to the editor after inserting media into the post. The hook can be used to add custom functionality or to modify the default behavior.
apply_filters( 'media_send_to_editor', string $html , int $send_id , array $attachment ) #
Filters the HTML markup for a media item sent to the editor.
Description
See also
Parameters
- $html
(string)HTML markup for a media item sent to the editor.
- $send_id
(int)The first key from the $_POST['send'] data.
- $attachment
(array)Array of attachment metadata.
Source
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |