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.


Top ↑

Source Source

File: includes/class-wc-coupon.php

	public function set_free_shipping( $free_shipping ) {
		$this->set_prop( 'free_shipping', (bool) $free_shipping );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.