yit_wpml_string_translate

Get a string translation.

Description

(string) yit_wpml_string_translate( $contenxt, (string) $name, $default_value ); 

Returns (string)

the string translated

Parameters (3)

0. $contenxt
The contenxt.
1. $name (string)
String name
2. $default_value
The default value.

Usage

  1. if ( !function_exists( 'yit_wpml_string_translate' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'yith-woocommerce-wishlist/plugin-fw/yit-functions.php'; 
  3.  
  4. // The contenxt. 
  5. $contenxt = null; 
  6.  
  7. // string name 
  8. $name = ''; 
  9.  
  10. // The default value. 
  11. $default_value = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = yit_wpml_string_translate($contenxt, $name, $default_value); 
  15.  

Defined (1)

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

/plugin-fw/yit-functions.php  
  1. function yit_wpml_string_translate ( $contenxt, $name, $default_value ) { 
  2. return apply_filters ( 'wpml_translate_single_string', $default_value, $contenxt, $name );