WP_Textdomain_Registry::get( string $domain, string $locale )
Returns the languages directory path for a specific domain and locale.
Parameters
- $domain
-
(Required) Text domain.
- $locale
-
(Required) Locale.
Return
(string|false) MO file path or false if there is none available.
Source
File: wp-includes/class-wp-textdomain-registry.php
public function get( $domain, $locale ) {
if ( isset( $this->all[ $domain ][ $locale ] ) ) {
return $this->all[ $domain ][ $locale ];
}
return $this->get_path_from_lang_dir( $domain, $locale );
}
Changelog
Version | Description |
---|---|
6.1.0 | Introduced. |