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



image_send_to_editor_url › WordPress Filter Hooks

Since2.8.0
Deprecatedn/a
apply_filters( 'image_send_to_editor_url', $html, sanitize_url( $src )
Parameters: (4)
  • () html HTML markup sent to the editor for an image.
    Required: Yes
  • () src Image source URL.
    Required: Yes
  • () alt Image alternate, or alt, text.
    Required: Yes
  • () align The image alignment. Default 'alignnone'. Possible values include 'alignleft', 'aligncenter', 'alignright', 'alignnone'.
    Required: Yes
Defined at:
Codex:

Filters the image URL sent to the editor.





Source

$html = apply_filters( 'image_send_to_editor_url', $html, sanitize_url( $src ), $alt, $align );