Automattic\WooCommerce\Blocks\BlockTypes

ProductStockIndicator::get_product_types_without_stock_indicator()protectedWC 1.0

Get product types that should not display stock indicators.

Method of the class: ProductStockIndicator{}

No Hooks.

Return

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 9.6.0

protected function get_product_types_without_stock_indicator() {
	return array( 'external', 'grouped', 'variable' );
}