wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



media_send_to_editor › WordPress Filter Hooks

Seit2.5.0
Veraltetn/v
apply_filters( 'media_send_to_editor', $html, $send_id, $attachment )
Parameter: (3)
  • () html HTML markup for a media item sent to the editor.
    Erforderlich: Ja
  • () send_id The first key from the $_POST['send'] data.
    Erforderlich: Ja
  • () attachment Array of attachment metadata.
    Erforderlich: Ja
Siehe:
  • wp_get_attachment_metadata()
Definiert in:
Codex:

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





Quellcode

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