add phpdoc block with gist reference to woocommerce_package_rates filter

This commit is contained in:
Ron Rennick 2021-10-19 13:15:43 -03:00
parent 75c341494c
commit 37c7de4422
1 changed files with 7 additions and 1 deletions

View File

@ -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 ); $package['rates'] = apply_filters( 'woocommerce_package_rates', $package['rates'], $package );
// Store in session to avoid recalculation. // Store in session to avoid recalculation.