- availability:
-
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.
- type:
- action
- category:
- Miscellaneous
- parameters:
-
add_action( 'wcml_gui_additional_box_html', 'the_callback_function', 10, 3 );
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.
- hook 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 }