public function InstapageCmsPluginWPConnector::lang in Instapage plugin 8.3
Same name and namespace in other branches
- 7.3 core/connectors/InstapageCmsPluginWPConnector.php \InstapageCmsPluginWPConnector::lang()
Gets the value of language variable.
File
- core/
connectors/ InstapageCmsPluginWPConnector.php, line 331
Class
- InstapageCmsPluginWPConnector
- Class that utilizes native WordPress functions to perform actions like remote requests and DB operations.
Code
public function lang() {
$arguments = func_get_arg(0);
if (!count($arguments)) {
return null;
}
$text = $arguments[0];
$variables = array_slice($arguments, 1);
if (!count($variables)) {
return __($text);
}
return vsprintf(__($text), $variables);
}