WC_Coupon::set_maximum_amount()
Set the maximum spend amount.
Method of the class: WC_Coupon{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Coupon = new WC_Coupon(); $WC_Coupon->set_maximum_amount( $amount );
- $amount(float) (required)
- Maximum amount.
Changelog
Since 3.0.0 | Introduced. |
WC_Coupon::set_maximum_amount() WC Coupon::set maximum amount code WC 9.4.2
public function set_maximum_amount( $amount ) { $this->set_prop( 'maximum_amount', wc_format_decimal( $amount ) ); }