WC_Abstract_Legacy_Order::get_used_coupons()publicWC 1.0

Deprecated from version 3.7.0 - Replaced with better named method to reflect the actual data being returned.. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Get coupon codes only.

Method of the class: WC_Abstract_Legacy_Order{}

No Hooks.

Return

Array.

Usage

$WC_Abstract_Legacy_Order = new WC_Abstract_Legacy_Order();
$WC_Abstract_Legacy_Order->get_used_coupons();

Changelog

Deprecated since 3.7.0 - Replaced with better named method to reflect the actual data being returned.

WC_Abstract_Legacy_Order::get_used_coupons() code WC 8.7.0

public function get_used_coupons() {
	wc_deprecated_function( 'get_used_coupons', '3.7', 'WC_Abstract_Order::get_coupon_codes' );
	return $this->get_coupon_codes();
}