WP_Image_Editor::stream()publicWP 3.5.0

Streams current image to browser.

Method of the class: WP_Image_Editor{}

No Hooks.

Return

true|WP_Error. True on success, WP_Error object on failure.

Usage

$WP_Image_Editor = new WP_Image_Editor();
$WP_Image_Editor->stream( $mime_type );
$mime_type(string)
The mime type of the image.
Default: null

Changelog

Since 3.5.0 Introduced.

WP_Image_Editor::stream() code WP 6.5.2

abstract public function stream( $mime_type = null );