WC_Abstract_Legacy_Order::increase_coupon_usage_countspublicWC 1.0

Deprecated since 3.0.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.

Increase applied coupon counts.

Method of the class: WC_Abstract_Legacy_Order{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Changelog

Deprecated since 3.0.0

WC_Abstract_Legacy_Order::increase_coupon_usage_counts() code WC 10.5.0

public function increase_coupon_usage_counts() {
	wc_deprecated_function( 'WC_Order::increase_coupon_usage_counts', '3.0', 'wc_update_coupon_usage_counts' );
	wc_update_coupon_usage_counts( $this->get_id() );
}