How to automatically convert images to WebP on WordPress?

Doing this in vanilla WordPress using hooks requires code that hasn’t been released yet, specifically: https://core.trac.wordpress.org/changeset/53751 https://core.trac.wordpress.org/ticket/55443 That Trac ticket adds new filters which are available in WordPress 6.1. Note that if your server cannot process webp images for resizing then webp will not work for you even with these filters. You will need to …

Read more