WC_Coupon::set_discount_typepublicWC 3.0.0

Set discount type.

Метод класса: WC_Coupon{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WC_Coupon = new WC_Coupon();
$WC_Coupon->set_discount_type( $discount_type );
$discount_type(строка) (обязательный)
Discount type.

Список изменений

С версии 3.0.0 Введена.

Код WC_Coupon::set_discount_type() WC 10.9.1

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