Skip Navigation
availability:

WooCommerce Multilingual Version: 3.8.1

description:
type:
filter
category:
Miscellaneous
parameters:
add_filter( 'wcml_gui_additional_box_data', 'the_callback_function', 10, 4 );

There are four parameters being passed to this filter:

$data
(array) The translation job data array.
$product_id
(integer) The ID of original product.
$translation
(object) The translation job object.
$target_language
(string) The language code of translated product.
hook example usage:

Example

add_filter( 'wcml_gui_additional_box_data', 'my_custom_action', 10, 4 );
 
function my_custom_action( $data, $product_id, $translation, $target_language ) {
 
    // my custom action
 
}