WordPress at Your Fingertips
function is not described

WC_Abstract_Legacy_Order::get_used_coupons() public WC 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.

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

Code of WC_Abstract_Legacy_Order::get_used_coupons() WC 5.5.2

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