WC_Product::get_virtual
Get virtual.
Method of the class: WC_Product{}
No Hooks.
Returns
true|false.
Usage
$WC_Product = new WC_Product(); $WC_Product->get_virtual( $context );
- $context(string)
- What the value is for. Valid values are view and edit.
Default:'view'
Changelog
| Since 3.0.0 | Introduced. |
WC_Product::get_virtual() WC Product::get virtual code WC 10.6.2
public function get_virtual( $context = 'view' ) {
return $this->get_prop( 'virtual', $context );
}