WP_Translations::__construct()
Constructor.
Method of the class: WP_Translations{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WP_Translations = new WP_Translations(); $WP_Translations->__construct( $controller, $textdomain );
- $controller(WP_Translation_Controller) (required)
- I18N controller.
- $textdomain(string)
- Text domain.
Default: 'default'
Changelog
Since 6.5.0 | Introduced. |
WP_Translations::__construct() WP Translations:: construct code WP 6.7.1
public function __construct( WP_Translation_Controller $controller, string $textdomain = 'default' ) { $this->controller = $controller; $this->textdomain = $textdomain; }