Title: codeggs.com's Replies | WordPress.org

---

# codeggs.com

  [  ](https://wordpress.org/support/users/codeggs/)

 *   [Profile](https://wordpress.org/support/users/codeggs/)
 *   [Topics Started](https://wordpress.org/support/users/codeggs/topics/)
 *   [Replies Created](https://wordpress.org/support/users/codeggs/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/codeggs/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/codeggs/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/codeggs/engagements/)
 *   [Favorites](https://wordpress.org/support/users/codeggs/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Failed to communicate with QUIC.cloud server](https://wordpress.org/support/topic/failed-to-communicate-with-quic-cloud-server-12/)
 *  Thread Starter [codeggs.com](https://wordpress.org/support/users/codeggs/)
 * (@codeggs)
 * [7 months ago](https://wordpress.org/support/topic/failed-to-communicate-with-quic-cloud-server-12/#post-18623687)
 * Hi,
   together with hosting provider we found a solution (which is not the best,
   as it changes one line in core file, but it works), in file \wp-content\plugins\
   litespeed-cache\src\rest.cls.php we uncommented the line 141 and the QUIC.cloud
   connection was then successfull. So the full function now looks like this:
 * `_/**
    * Check if the request is from cloud nodes * * @since 4.2 * @since 4.4.7
   As there is always token/api key validation, ip validation is redundant */public
   function is\_from\_cloud() {return true; // Uncomment this line//return $this-
   >cls('Cloud')->is\_from\_cloud(); }
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Hide shipping options code not working after update to 2.3](https://wordpress.org/support/topic/hide-shipping-options-code-not-working-after-update-to-23/)
 *  [codeggs.com](https://wordpress.org/support/users/codeggs/)
 * (@codeggs)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/hide-shipping-options-code-not-working-after-update-to-23/#post-5777556)
 * For anyone else, if this piece of code is “not working”:
 *     ```
       /**
        * woocommerce_package_rates is a 2.1+ hook
        */
       add_filter( 'woocommerce_package_rates', 'hide_shipping_when_free_is_available', 10, 2 );
   
       /**
        * Hide shipping rates when free shipping is available
        *
        * @param array $rates Array of rates found for the package
        * @param array $package The package array/object being shipped
        * @return array of modified rates
        */
       function hide_shipping_when_free_is_available( $rates, $package ) {
   
        	// Only modify rates if free_shipping is present
         	if ( isset( $rates['free_shipping'] ) ) {
   
         		// To unset a single rate/method, do the following. This example unsets flat_rate shipping
         		unset( $rates['flat_rate'] );
   
         		// To unset all methods except for free_shipping, do the following
         		$free_shipping          = $rates['free_shipping'];
         		$rates                  = array();
         		$rates['free_shipping'] = $free_shipping;
       	}
   
       	return $rates;
       }
       ```
   
 * **you have to clear Woocommerce cache**. You can find this in _Woocommerce ->
   System status -> Tools -> WC Transients_ and click button “_Clear transients_“.

Viewing 2 replies - 1 through 2 (of 2 total)