WC_Abstract_Order::type_to_group()
Convert a type to a types group.
Method of the class: WC_Abstract_Order{}
Hooks from the method
Return
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() WC Abstract Order::type to group code WC 9.5.1
protected function type_to_group( $type ) { $type_to_group = apply_filters( 'woocommerce_order_type_to_group', $this->item_types_to_group ); return $type_to_group[ $type ] ?? ''; }