Skip Navigation
availability:

WooCommerce Multilingual Version: 4.11.0

description:

Allows overriding which item language to filter.

type:
filter
category:
Orders
parameters:
$translate
(bool) True if we should save adjusted order item.
$order
(WC_Order) WC order
$language_to_filter
(string) Language to filter
hook example usage:
add_filter( 'wcml_get_order_items_language', function ( $language, $order ) {
	return 'es';
}, 10, 2 );