Automattic\WooCommerce\Enums

ProductStockStatus::get_allpublic staticWC 10.9.0

Returns all product stock status values.

Method of the class: ProductStockStatus{}

No Hooks.

Returns

String[].

Usage

$result = ProductStockStatus::get_all(): array;

Changelog

Since 10.9.0 Introduced.

ProductStockStatus::get_all() code WC 10.9.1

public static function get_all(): array {
	return array(
		self::IN_STOCK,
		self::OUT_OF_STOCK,
		self::ON_BACKORDER,
		self::LOW_STOCK,
	);
}