wpml_add_string_translation

The WooCommerce Multilingual wpml add string translation hook.

Description

do_action( 'wpml_add_string_translation', (unknown) $string_id, (unknown) $target_language, (string) $translations_md5_string_name, (unknown) $this_sitepress_get_wp_api_constant_icl_tm_complete ); 

Parameters (4)

0. $string_id (unknown)
The string id.
1. $target_language (unknown)
The target language.
2. $translations_md5_string_name (string)
The translations md5 string name.
3. $this_sitepress_get_wp_api_constant_icl_tm_complete (unknown)
The this sitepress get wp api constant icl tm complete.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'wpml_add_string_translation', $string_id, $target_language, $translations_md5_string_name, $this_sitepress_get_wp_api_constant_icl_tm_complete ); 
The following example is for adding a hook callback.
  1. // define the wpml_add_string_translation callback 
  2. function action_wpml_add_string_translation( $string_id, $target_language, $translations_md5_string_name, $this_sitepress_get_wp_api_constant_icl_tm_complete ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'wpml_add_string_translation', 'action_wpml_add_string_translation', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'wpml_add_string_translation', 'action_wpml_add_string_translation', 10, 4 ); 

Defined (1)

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

/inc/translation-editor/class-wcml-page-builders.php  
  1. do_action(