WordPress at a glance
function is not described

WP_Widget_Calendar::__construct() public WP 2.8.0

Sets up a new Calendar widget instance.

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

No Hooks.

Return

null. Nothing.

Usage

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

Changelog

Since 2.8.0 Introduced.

Code of WP_Widget_Calendar::__construct() WP 5.7.2

<?php
public function __construct() {
	$widget_ops = array(
		'classname'                   => 'widget_calendar',
		'description'                 => __( 'A calendar of your site’s posts.' ),
		'customize_selective_refresh' => true,
	);
	parent::__construct( 'calendar', __( 'Calendar' ), $widget_ops );
}