WC_Coupon::set_virtual()
Set coupon virtual state.
Method of the class: WC_Coupon{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Coupon = new WC_Coupon(); $WC_Coupon->set_virtual( $virtual );
- $virtual(true|false) (required)
- Whether it is virtual or not.
Changelog
Since 3.2.0 | Introduced. |
WC_Coupon::set_virtual() WC Coupon::set virtual code WC 9.3.3
public function set_virtual( $virtual ) { $this->set_prop( 'virtual', (bool) $virtual ); }