On this page
WP_Image_Editor_GD::make_image( string $filename, callable $callback, array $arguments ): bool
Either calls editor’s save function or handles file as a stream.
Parameters
$filenamestring Required$callbackcallable Required$argumentsarray Required
Return
bool
Source
File: wp-includes/class-wp-image-editor-gd.php. View all references
protected function make_image( $filename, $callback, $arguments ) {
if ( wp_is_stream( $filename ) ) {
$arguments[1] = null;
}
return parent::make_image( $filename, $callback, $arguments );
}
Related
Uses
| Uses | Description |
|---|---|
| wp_is_stream() wp-includes/functions.php | Tests if a given path is a stream URL |
| WP_Image_Editor::make_image() wp-includes/class-wp-image-editor.php | Either calls editor’s save function or handles file as a stream. |
Used By
| Used By | Description |
|---|---|
| WP_Image_Editor_GD::_save() wp-includes/class-wp-image-editor-gd.php |
Changelog
| Version | Description |
|---|---|
| 3.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_image_editor_gd/make_image