Automattic\WooCommerce\Internal\POS

Capabilities::all_pos_capabilities │ public static │ WC 1.0

All known POS capability identifiers.

The canonical list of woocommerce_pos_* caps — used to test for POS access and, by the preset layer, to apply or clear a user's caps as a set.

Method of the class: Capabilities{}

No Hooks.

Returns

string[].

Usage

$result = Capabilities::all_pos_capabilities(): array;

Capabilities::all_pos_capabilities() code WC 11.1.2

public static function all_pos_capabilities(): array {
	return array(
		self::CAP_PROCESS_SALES,
		self::CAP_VIEW_ORDERS,
		self::CAP_APPLY_COUPONS,
		self::CAP_CREATE_COUPONS,
		self::CAP_ISSUE_REFUNDS,
		self::CAP_VIEW_SETTINGS,
		self::CAP_EDIT_SETTINGS,
		self::CAP_MANAGE_STAFF,
		self::CAP_EXIT_POS,
	);
}