Useful Code Snippets for WordPress 5.8
WordPress 5.8 is on track to be released on the 20th of July and it contains a number of new features. You can test WordPress 5.8 using a beta version on a staging site if you want to get used to the newer version of WordPress that will be released. WordPress finally includes support for the WebP image format in version 5.8. The image quality that WordPress will use will be similar to JPG and PNG image formats which is set as 82%. In order to change the WebP image quality to 90% you can use the following code snippet.