wc_order_types filter-hookWC 1.0

Usage

add_filter( 'wc_order_types', 'wp_kama_wc_order_types_filter', 10, 2 );

/**
 * Function for `wc_order_types` filter-hook.
 * 
 * @param  $order_types 
 * @param  $for         
 *
 * @return 
 */
function wp_kama_wc_order_types_filter( $order_types, $for ){

	// filter...
	return $order_types;
}
$order_types
-
$for
-

Where the hook is called

wc_get_order_types()
wc_order_types
woocommerce/includes/wc-order-functions.php 264
return apply_filters( 'wc_order_types', $order_types, $for );

Where the hook is used in WooCommerce

Usage not found.