woocommerce_order_type_to_group хук-фильтр . WC 1.0
Convert a type to a types group.
Использование
add_filter( 'woocommerce_order_type_to_group', 'filter_function_name_3' ); function filter_function_name_3( $type ){ // filter... return $type; }
- $type(строка)
- type to lookup.
Где вызывается хук
woocommerce_order_type_to_group
woocommerce/includes/abstracts/abstract-wc-order.php 733-742
$type_to_group = apply_filters( 'woocommerce_order_type_to_group', array( 'line_item' => 'line_items', 'tax' => 'tax_lines', 'shipping' => 'shipping_lines', 'fee' => 'fee_lines', 'coupon' => 'coupon_lines', ) );