WC_Order_Item_Coupon::get_discount() public WC 1.0
Get discount amount.
{} Это метод класса: WC_Order_Item_Coupon{}
Хуков нет.
Возвращает
Строку.
Использование
$WC_Order_Item_Coupon = new WC_Order_Item_Coupon(); $WC_Order_Item_Coupon->get_discount( $context );
- $context(строка)
- What the value is for. Valid values are 'view' and 'edit'.
Код WC_Order_Item_Coupon::get_discount() WC Order Item Coupon::get discount WC 5.0.0
public function get_discount( $context = 'view' ) {
return $this->get_prop( 'discount', $context );
}