add phpdoc block with gist reference to woocommerce_package_rates filter
This commit is contained in:
parent
75c341494c
commit
37c7de4422
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue