Filters the image URL sent to the editor.
Parameters
$htmlstring- HTML markup sent to the editor for an image.
$srcstring- Image source URL.
$altstring- Image alternate, or alt, text.
$alignstring- The image alignment. Default
'alignnone'. Possible values include'alignleft','aligncenter','alignright','alignnone'.
Source
$html = apply_filters( 'image_send_to_editor_url', $html, sanitize_url( $src ), $alt, $align );
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.