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

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

$domain

(Required) Text domain.

$locale

(Required) Locale.

$path

(Required) Language directory path or false if there is none available.


Source

File: wp-includes/class-wp-textdomain-registry.php

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

Changelog

Changelog
Version Description
6.1.0 Introduced.