On this page
apply_filters( 'image_send_to_editor_url', string $html, string $src, string $alt, string $align )
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
File: wp-admin/includes/media.php. View all references
$html = apply_filters( 'image_send_to_editor_url', $html, sanitize_url( $src ), $alt, $align );
Related
Used By
| Used By | Description |
|---|---|
| wp_media_upload_handler() wp-admin/includes/media.php | Handles the process of uploading media. |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/image_send_to_editor_url