WP_Textdomain_Registry::get( string $domain, string $locale ): string|false

In this article

Returns the languages directory path for a specific domain and locale.

Parameters

$domainstringrequired
Text domain.
$localestringrequired
Locale.

Return

string|false MO file path or false if there is none available.

Source

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

VersionDescription
6.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.