wpseek.com
A WordPress-centric search engine for devs and theme authors



media_send_to_editor › WordPress Filter Hooks

Since2.5.0
Deprecatedn/a
apply_filters( 'media_send_to_editor', $html, $send_id, $attachment )
Parameters: (3)
  • () html HTML markup for a media item sent to the editor.
    Required: Yes
  • () send_id The first key from the $_POST['send'] data.
    Required: Yes
  • () attachment Array of attachment metadata.
    Required: Yes
See:
  • wp_get_attachment_metadata()
Defined at:
Codex:

Filters the HTML markup for a media item sent to the editor.





Source

$html = apply_filters( 'media_send_to_editor', $html, $send_id, $attachment );