Sets the translation domain for this dependency.
Parameters
$domain
stringrequired- The translation textdomain.
$path
stringoptional- The full file path to the directory containing translation files.
Default:
''
Source
public function set_translations( $domain, $path = '' ) {
if ( ! is_string( $domain ) ) {
return false;
}
$this->textdomain = $domain;
$this->translations_path = $path;
return true;
}
Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.