WordPress at a glance
function is not described

WP_Widget_Custom_HTML::__construct() public WP 4.8.1

Sets up a new Custom HTML widget instance.

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

No Hooks.

Return

null. Nothing.

Usage

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

Changelog

Since 4.8.1 Introduced.

Code of WP_Widget_Custom_HTML::__construct() WP 5.7.2

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