WordPress at a glance
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.


true/false/WP_Error. True on success, WP_Error object or false on failure.


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


Since 3.5.0 Introduced.

Code of WP_Image_Editor::stream() WP 5.6

abstract public function stream( $mime_type = null );