WC_Coupon::set_free_shipping( bool $free_shipping )
Set if this coupon enables free shipping or not.
Description Description
Parameters Parameters
- $free_shipping
-
(Required) If grant free shipping.
Source Source
File: includes/class-wc-coupon.php
public function set_free_shipping( $free_shipping ) { $this->set_prop( 'free_shipping', (bool) $free_shipping ); }
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |