WC_Product::is_sold_individually
Check if a product is sold individually (no quantities).
Method of the class: WC_Product{}
Hooks from the method
Returns
true|false
.
Usage
$WC_Product = new WC_Product(); $WC_Product->is_sold_individually();
WC_Product::is_sold_individually() WC Product::is sold individually code WC 9.9.5
public function is_sold_individually() { return apply_filters( 'woocommerce_is_sold_individually', true === $this->get_sold_individually(), $this ); }