WP_Translations::__construct( WP_Translation_Controller $controller, string $textdomain = ‘default’ )

In this article

Constructor.

Parameters

$controllerWP_Translation_Controllerrequired
I18N controller.
$textdomainstringoptional
Text domain. Default 'default'.

Default:'default'

Source

public function __construct( WP_Translation_Controller $controller, string $textdomain = 'default' ) {
	$this->controller = $controller;
	$this->textdomain = $textdomain;
}

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

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