WordPress at Your Fingertips
function is not described

WP_Image_Editor::stream() public WP 3.5.0

Streams current image to browser.

{} It's a 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.

Changelog

Since 3.5.0 Introduced.

Code of WP_Image_Editor::stream() WP 5.8

<?php
abstract public function stream( $mime_type = null );