woocommerce_coupon_get_items_to_validate
Get items to validate.
Usage
add_filter( 'woocommerce_coupon_get_items_to_validate', 'wp_kama_woocommerce_coupon_get_items_to_validate_filter', 10, 2 );
/**
* Function for `woocommerce_coupon_get_items_to_validate` filter-hook.
*
* @param $items
* @param $that
*
* @return
*/
function wp_kama_woocommerce_coupon_get_items_to_validate_filter( $items, $that ){
// filter...
return $items;
}
- $items
- -
- $that
- -
Changelog
| Since 3.3.2 | Introduced. |
Where the hook is called
woocommerce_coupon_get_items_to_validate
woocommerce/includes/class-wc-discounts.php 157
return apply_filters( 'woocommerce_coupon_get_items_to_validate', $this->get_items(), $this );