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