WPML
add_filter( 'wcml_gui_additional_box_data', 'the_callback_function', 10, 4 );
Type
filter
Category
Miscellaneous
WooCommerce Multilingual Version
3.8.1

Description

Arguments

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.

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
 
}

wcml_new_order_admin_email_language, translate_shipping_methods_in_package, wcml_gui_additional_box_html, wcml_current_gateway_language, wcml_variation_term_taxonomy_ids, wcml_is_attributes_page, wcml_is_variable_product, wcml_after_load_lock_fields_js, wcml_wc_installed_pages, wcml_not_display_single_fields_to_translate

All 12 Miscellaneous hooks →