wpml_register_string

The WooCommerce Multilingual wpml register string hook.

Description

do_action( 'wpml_register_string', (unknown) $field_label, (string) $string_name_label, (unknown) $this_package, (string) $string_name_label, (unknown) $this_package_kind ); 

Parameters (5)

0. $field_label (unknown)
The field label.
1. $string_name_label (string) => "{$string_name}_label"
The string name label.
2. $this_package (unknown)
The this package.
3. $string_name_label (string) => "{$string_name} Label"
The string name label.
4. $this_package_kind (unknown)
The this package kind.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'wpml_register_string', $field_label, $string_name_label, $this_package, $string_name_label, $this_package_kind ); 
The following example is for adding a hook callback.
  1. // define the wpml_register_string callback 
  2. function action_wpml_register_string( $field_label, $string_name_label, $this_package, $string_name_label, $this_package_kind ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'wpml_register_string', 'action_wpml_register_string', 10, 5 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'wpml_register_string', 'action_wpml_register_string', 10, 5 ); 

Defined (3)

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

/compatibility/class-wcml-checkout-field-editor.php  
  1. do_action( 'wpml_register_string', 
  1. do_action( 'wpml_register_string', 
  1. do_action( 'wpml_register_string',