WordPress at Your Fingertips
function is not described

WC_Abstract_Order::get_coupons() public WC 3.7.0

Return an array of coupons within this order.

{} It's a 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.

Code of WC_Abstract_Order::get_coupons() WC 5.8.0

public function get_coupons() {
	return $this->get_items( 'coupon' );
}