WC_AJAX::add_coupon_discount()public staticWC 1.0

Add order discount via ajax.

Method of the class: WC_AJAX{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_AJAX::add_coupon_discount();

WC_AJAX::add_coupon_discount() code WC 8.9.0

public static function add_coupon_discount() {
	wc_get_container()->get( CouponsController::class )->add_coupon_discount_via_ajax();
}