WC_Product_Variable::get_virtual()
Variable products themselves cannot be virtual.
Method of the class: WC_Product_Variable{}
No Hooks.
Return
true|false
.
Usage
$WC_Product_Variable = new WC_Product_Variable(); $WC_Product_Variable->get_virtual( $context );
- $context(string)
- What the value is for. Valid values are view and edit.
Default: 'view'
WC_Product_Variable::get_virtual() WC Product Variable::get virtual code WC 9.3.3
public function get_virtual( $context = 'view' ) { return false; }