woocommerce_get_shop_coupon_data filter-hook . WC 1.0
This filter allows custom coupon objects to be created on the fly.
Usage
add_filter( 'woocommerce_get_shop_coupon_data', 'filter_function_name_3028', 10, 3 ); function filter_function_name_3028( $false, $data, $that ){ // filter... return $false; }
- $false
- -
- $data
- -
- $that
- -
Where the hook is called
woocommerce_get_shop_coupon_data
woocommerce/includes/class-wc-coupon.php 98
$coupon = apply_filters( 'woocommerce_get_shop_coupon_data', false, $data, $this );