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

In this article

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

VersionDescription
2.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.