Automattic\WooCommerce\Blocks\BlockTypes

ProductStockIndicator::get_product_types_without_stock_indicatorprotectedWC 1.0

Get product types that should not display stock indicators.

Method of the class: ProductStockIndicator{}

No Hooks.

Returns

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_product_types_without_stock_indicator();

ProductStockIndicator::get_product_types_without_stock_indicator() code WC 10.3.3

protected function get_product_types_without_stock_indicator() {
	return array( ProductType::EXTERNAL, ProductType::GROUPED );
}