WPDev.one
Core Function
View Source on Trac ↗

wp_stream_image()

wp_stream_image( mixed $image, mixed $mime_type, mixed $attachment_id )

Streams image in WP_Image_Editor to browser.

Parameters 3 required

Name / Type Description
$image
WP_Image_Editor

The image editor instance.

Required
$mime_type
string

The mime type of the image.

Required
$attachment_id
int

The image's attachment post ID.

Required

Return Value

(bool)
True on success, false on failure.

Function Information

Since Version
2.9.0
Source File
wp-admin/includes/image-edit.php
Advertisement