WP_Textdomain_Registry::set( string $domain, string $locale, string|false $path )

In this article

Sets the language directory path for a specific domain and locale.

Description

Also sets the ‘current’ property for direct access to the path for the current (most recent) locale.

Parameters

$domainstringrequired
Text domain.
$localestringrequired
Locale.
$pathstring|falserequired
Language directory path or false if there is none available.

Source

public function set( $domain, $locale, $path ) {
	$this->all[ $domain ][ $locale ] = $path ? rtrim( $path, '/' ) . '/' : false;
	$this->current[ $domain ]        = $this->all[ $domain ][ $locale ];
}

Changelog

VersionDescription
6.1.0Introduced.

User Contributed Notes

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