Disable WebP image generation in WordPress 6.x

Disable WebP image generation in WordPress 6.x on child sites.

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'wp_upload_image_mime_transforms', '__return_empty_array' );

WordPress 6.1 is scheduled to be released on the 1st November.

WebP image generation on upload might be changed for what makes it into the WordPress 6.1.

Might be punted out and into a plugin rather than WordPress core.

No longer in the WordPress 6.1 release.
https://core.trac.wordpress.org/ticket/55443#comment:203