WordPress at Your Fingertips
function is not described

WC_Abstract_Legacy_Order::increase_coupon_usage_counts() public WC 1.0

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

Increase applied coupon counts.

{} It's a method of the class: WC_Abstract_Legacy_Order{}

No Hooks.


null. Nothing.


$WC_Abstract_Legacy_Order = new WC_Abstract_Legacy_Order();


Deprecated 3.0.0

Code of WC_Abstract_Legacy_Order::increase_coupon_usage_counts() WC 5.5.2

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() );