Function Reference: geodir_wpml_translate_string

Summary

Retrieves an individual WPML text string translation.

Package

GeoDirectory

Parameters

$string
(string) (required) The string that needs to be translated.

Default: None
$domain
(string) (required) The plugin domain.

Default: geodirectory
$name
(string) (required) The name of the string which helps to know what’s being translated.

Default: None
$language_code
(string) (required) Return the translation in this language.

Default: is NULL which returns the current language

Return Values

(string)
  • The translated string.

Change Log

Since: 1.6.16 Details page add locations to the term links.

Filters

‘wpml_translate_single_string’ [Line: 5284]

Source File

geodir_wpml_translate_string() is located in geodirectory-functions/general_functions.php [Line: 5283]

Source Code

function geodir_wpml_translate_string( $string, $domain = 'geodirectory', $name = '', $language_code = NULL ) {
    return apply_filters( 'wpml_translate_single_string', $string, $domain, $name, $language_code );
}