WC_Coupon::set_discount_type
Set discount type.
Method of the class: WC_Coupon{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Coupon = new WC_Coupon(); $WC_Coupon->set_discount_type( $discount_type );
- $discount_type(string) (required)
- Discount type.
Changelog
| Since 3.0.0 | Introduced. |
WC_Coupon::set_discount_type() WC Coupon::set discount type code WC 10.7.0
public function set_discount_type( $discount_type ) {
$this->set_discount_type_core( $discount_type, true );
}