diff --git a/plugins/woocommerce/includes/class-wc-shipping.php b/plugins/woocommerce/includes/class-wc-shipping.php index d9157983a44..f4f9eba55f4 100644 --- a/plugins/woocommerce/includes/class-wc-shipping.php +++ b/plugins/woocommerce/includes/class-wc-shipping.php @@ -358,7 +358,13 @@ class WC_Shipping { } } - // Filter the calculated rates. + /** + * Filter the calculated shipping rates. + * + * @see https://gist.github.com/woogists/271654709e1d27648546e83253c1a813 for cache invalidation methods. + * @param array $package['rates'] Package rates. + * @param array $package Package of cart items. + */ $package['rates'] = apply_filters( 'woocommerce_package_rates', $package['rates'], $package ); // Store in session to avoid recalculation.