WordPress at Your Fingertips
function is not described

WC_Coupon::set_maximum_amount() public WC 3.0.0

Set the maximum spend amount.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Coupon = new WC_Coupon();
$WC_Coupon->set_maximum_amount( $amount );
$amount(float) (required)
Maximum amount.

Changelog

Since 3.0.0 Introduced.

Code of WC_Coupon::set_maximum_amount() WC 5.7.1

public function set_maximum_amount( $amount ) {
	$this->set_prop( 'maximum_amount', wc_format_decimal( $amount ) );
}