add_action( 'wcml_gui_additional_box_html', 'the_callback_function', 10, 3 );
- Type
- action
- Category
- Miscellaneous
- WooCommerce Multilingual Version
- 3.8.1
Description
- Add additional fields to translate in WCML Translation Editor.
- To add translation data, see the wcml_gui_additional_box_data hook.
Arguments
There are three parameters being passed to this action:- $obj
- (object) The translation job object.
- $product_id
- (integer) The ID of original product.
- $data
- (array) The translation job data array.
Example usage
Example
add_action( 'wcml_gui_additional_box_html', 'my_custom_action', 10, 3 );
function my_custom_action( $obj, $product_id, $data ) {
// my custom action
}
Related hooks
wcml_new_order_admin_email_language, translate_shipping_methods_in_package, wcml_current_gateway_language, wcml_variation_term_taxonomy_ids, wcml_is_attributes_page, wcml_is_variable_product, wcml_gui_additional_box_data, wcml_after_load_lock_fields_js, wcml_wc_installed_pages, wcml_not_display_single_fields_to_translate