woocommerce_order_type_to_group хук-фильтрWC 1.0

Convert a type to a types group.

Использование

add_filter( 'woocommerce_order_type_to_group', 'wp_kama_woocommerce_order_type_to_group_filter' );

/**
 * Function for `woocommerce_order_type_to_group` filter-hook.
 * 
 * @param string $type type to lookup.
 *
 * @return string
 */
function wp_kama_woocommerce_order_type_to_group_filter( $type ){

	// filter...
	return $type;
}
$type(строка)
type to lookup.

Где вызывается хук

WC_Abstract_Order::type_to_group()
woocommerce_order_type_to_group
woocommerce/includes/abstracts/abstract-wc-order.php 876-879
$type_to_group = apply_filters(
	'woocommerce_order_type_to_group',
	$this->item_types_to_group
);

Где используется хук в WooCommerce

Использование не найдено.