WC_Abstract_Order::get_coupons()
Return an array of coupons within this order.
Method of the class: WC_Abstract_Order{}
No Hooks.
Return
WC_Order_Item_Coupon[]
.
Usage
$WC_Abstract_Order = new WC_Abstract_Order(); $WC_Abstract_Order->get_coupons();
Changelog
Since 3.7.0 | Introduced. |
WC_Abstract_Order::get_coupons() WC Abstract Order::get coupons code WC 8.7.0
public function get_coupons() { return $this->get_items( 'coupon' ); }