WC_Abstract_Order::type_to_groupprotectedWC 1.0

Convert a type to a types group.

Method of the class: WC_Abstract_Order{}

No Hooks.

Returns

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->type_to_group( $type );
$type(string) (required)
type to lookup.

WC_Abstract_Order::type_to_group() code WC 11.0.1

protected function type_to_group( $type ) {
	$type_to_group = $this->get_item_types_to_group();
	return $type_to_group[ $type ] ?? '';
}