Filters the WP_Image_Editor instance for the image to be streamed to the browser.
$imageWP_Image_Editor$attachment_idintwp-admin/includes/image-edit.php:355wp_stream_image()wp-admin/includes/image-edit.php:434wp_save_image_file() * * @since 3.5.0 * * @param WP_Image_Editor $image The image editor instance. * @param int $attachment_id The attachment post ID. */ $image = apply_filters( 'image_editor_save_pre', $image, $attachment_id ); if ( is_wp_error( $image->stream( $mime_type ) ) ) { return false; } return true;Introduced in 3.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.