Speed Optimizer by SiteGround

Bypass Cookies

You need to bypass our cookie from speed optiomizer plugin. you need to add the following PHP code to the functions.php file in your store theme. This code will bypass cookies in the cache system. After adding the code, please clear the Purge SG Cache from your speed optimization plugin.

add_filter( 'sgo_bypass_cookies', 'add_sgo_bypass_cookies');

function add_sgo_bypass_cookies( $bypass_cookies ) {
  
  // Add the cookies, that you need to bypass the cache.
  $bypass_cookies[] = 'country';
  return $bypass_cookies;

}

$119.00

Billed annually

Buy Now