WP_Image_Editor::stream()publicWP 3.5.0

Streams current image to browser.

Метод класса: WP_Image_Editor{}

Хуков нет.

Возвращает

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

Использование

$WP_Image_Editor = new WP_Image_Editor();
$WP_Image_Editor->stream( $mime_type );
$mime_type(строка)
The mime type of the image.
По умолчанию: null

Список изменений

С версии 3.5.0 Введена.

Код WP_Image_Editor::stream() WP 6.5.2

abstract public function stream( $mime_type = null );