Modify the WebP image quality in SiteGround Optimizer

Modify the WebP image quality in SiteGround Optimizer on child sites.

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'sgo_webp_quality', 'webp_quality' );
function webp_quality( $quality ) {
    // Add the value you want to adjust as Webp image quality.
    $quality = 90;

    return $quality;
}

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.