WordPress at a glance
function is not described

WP_Widget_Text::__construct() public WP 2.8.0

Sets up a new Text widget instance.

{} It's a method of the class: WP_Widget_Text{}

No Hooks.

Return

null. Nothing.

Usage

$WP_Widget_Text = new WP_Widget_Text();
$WP_Widget_Text->__construct();

Changelog

Since 2.8.0 Introduced.

Code of WP_Widget_Text::__construct() WP 5.7.2

<?php
public function __construct() {
	$widget_ops  = array(
		'classname'                   => 'widget_text',
		'description'                 => __( 'Arbitrary text.' ),
		'customize_selective_refresh' => true,
	);
	$control_ops = array(
		'width'  => 400,
		'height' => 350,
	);
	parent::__construct( 'text', __( 'Text' ), $widget_ops, $control_ops );
}