WC_Product::get_sold_individually()
Return if should be sold individually.
Method of the class: WC_Product{}
No Hooks.
Return
true|false
.
Usage
$WC_Product = new WC_Product(); $WC_Product->get_sold_individually( $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_sold_individually() WC Product::get sold individually code WC 8.7.0
public function get_sold_individually( $context = 'view' ) { return $this->get_prop( 'sold_individually', $context ); }