wcml_update_extra_fields

The WooCommerce Multilingual wcml update extra fields hook.

Description

do_action( 'wcml_update_extra_fields', (unknown) $this_product_id, (unknown) $tr_product_id, (unknown) $translations, (unknown) $this_get_target_language ); 

Parameters (4)

0. $this_product_id (unknown)
The this product id.
1. $tr_product_id (unknown)
The tr product id.
2. $translations (unknown)
The translations.
3. $this_get_target_language (unknown)
The this get target language.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'wcml_update_extra_fields', $this_product_id, $tr_product_id, $translations, $this_get_target_language ); 
The following example is for adding a hook callback.
  1. // define the wcml_update_extra_fields callback 
  2. function action_wcml_update_extra_fields( $this_product_id, $tr_product_id, $translations, $this_get_target_language ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'wcml_update_extra_fields', 'action_wcml_update_extra_fields', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'wcml_update_extra_fields', 'action_wcml_update_extra_fields', 10, 4 ); 

Defined (1)

The action is defined in the following location(s).

/inc/translation-editor/class-wcml-editor-ui-product-job.php  
  1. do_action( 'wcml_update_extra_fields', $this->product_id, $tr_product_id, $translations, $this->get_target_language() );