WC_Coupon::get_free_shipping
If this coupon grants free shipping or not.
Method of the class: WC_Coupon{}
No Hooks.
Returns
true|false.
Usage
$WC_Coupon = new WC_Coupon(); $WC_Coupon->get_free_shipping( $context );
- $context(string)
- What the value is for. Valid values are
'view'and'edit'.
Default:'view'
Changelog
| Since 3.0.0 | Introduced. |
WC_Coupon::get_free_shipping() WC Coupon::get free shipping code WC 10.5.0
public function get_free_shipping( $context = 'view' ) {
return $this->get_prop( 'free_shipping', $context );
}