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



image_send_to_editor › WordPress Filter Hooks

Since5.6.0
Deprecatedn/a
apply_filters( 'image_send_to_editor', $html, $id, $caption, $title, $align, $url, $size, $alt, $rel )
Parameters: (9)
  • () html The image HTML markup to send.
    Required: Yes
  • () id The attachment ID.
    Required: Yes
  • () caption The image caption.
    Required: Yes
  • () title The image title.
    Required: Yes
  • () align The image alignment.
    Required: Yes
  • () url The image source URL.
    Required: Yes
  • () size Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
    Required: Yes
  • () alt The image alternative, or alt, text.
    Required: Yes
  • () rel The image rel attribute.
    Required: Yes
Defined at:
Codex:

Filters the image HTML markup to send to the editor when inserting an image.





Source

$html = apply_filters( 'image_send_to_editor', $html, $id, $caption, $title, $align, $url, $size, $alt, $rel );