woocommerce_coupon_get_items_to_validate filter-hookWC 3.3.2

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

WC_Discounts::get_items_to_validate()
woocommerce_coupon_get_items_to_validate
woocommerce/includes/class-wc-discounts.php 155
return apply_filters( 'woocommerce_coupon_get_items_to_validate', $this->get_items(), $this );

Where the hook is used in WooCommerce

Usage not found.