Automattic\WooCommerce\Internal\StockNotifications

Config::get_supported_product_typespublic staticWC 1.0

Get the supported product types.

Method of the class: Config{}

Returns

Array.

Usage

$result = Config::get_supported_product_types(): array;

Config::get_supported_product_types() code WC 10.3.6

public static function get_supported_product_types(): array {
	if ( is_array( self::$supported_product_types ) ) {
		return self::$supported_product_types;
	}

	/**
	 * Filter: woocommerce_customer_stock_notifications_supported_product_types
	 *
	 * @since 10.2.0
	 *
	 * @param array $product_types Product types.
	 */
	self::$supported_product_types = (array) apply_filters(
		'woocommerce_customer_stock_notifications_supported_product_types',
		array(
			ProductType::SIMPLE,
			ProductType::VARIABLE,
			ProductType::VARIATION,
		)
	);

	return self::$supported_product_types;
}