woocommerce_get_shop_coupon_data

woocommerce_get_shop_coupon_data

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_get_shop_coupon_data') is found 1 times:

  • /includes/class-wc-coupon.php line 121
    			return;
    		}
    
    		// This filter allows custom coupon objects to be created on the fly.
    		$coupon = apply_filters( 'woocommerce_get_shop_coupon_data', false, $data, $this );
    
    		if ( $coupon ) {
    			$this->read_manual_coupon( $data, $coupon );
    			return;
    		}