WC_Coupon::set_discount_typepublicWC 3.0.0

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() code WC 10.7.0

public function set_discount_type( $discount_type ) {
	$this->set_discount_type_core( $discount_type, true );
}