Title: image_send_to_editor_url
Published: April 25, 2014
Last modified: May 20, 2026

---

# apply_filters( ‘image_send_to_editor_url’, string $html, string $src, string $alt, string $align )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/image_send_to_editor_url/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/image_send_to_editor_url/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/image_send_to_editor_url/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/image_send_to_editor_url/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/image_send_to_editor_url/?output_format=md#wp--skip-link--target)

Filters the image URL sent to the editor.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/image_send_to_editor_url/?output_format=md#parameters)󠁿

 `$html`string

HTML markup sent to the editor for an image.

`$src`string

Image source URL.

`$alt`string

Image alternate, or alt, text.

`$align`string

The image alignment. Default `'alignnone'`. Possible values include `'alignleft'`,`'
aligncenter'`, `'alignright'`, `'alignnone'`.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/image_send_to_editor_url/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/media.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/media.php#L976)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/media.php#L976-L976)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/image_send_to_editor_url/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_media_upload_handler()](https://developer.wordpress.org/reference/functions/wp_media_upload_handler/)`wp-admin/includes/media.php` |

Handles the process of uploading media.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/image_send_to_editor_url/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.8.0](https://developer.wordpress.org/reference/since/2.8.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fimage_send_to_editor_url%2F)
before being able to contribute a note or feedback.