WordPress at a glance
function is not described

WP_Widget_Recent_Posts::__construct() public WP 2.8.0

Sets up a new Recent Posts widget instance.

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

No Hooks.

Return

null. Nothing.

Usage

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

Changelog

Since 2.8.0 Introduced.

Code of WP_Widget_Recent_Posts::__construct() WP 5.7.2

<?php
public function __construct() {
	$widget_ops = array(
		'classname'                   => 'widget_recent_entries',
		'description'                 => __( 'Your site&#8217;s most recent Posts.' ),
		'customize_selective_refresh' => true,
	);
	parent::__construct( 'recent-posts', __( 'Recent Posts' ), $widget_ops );
	$this->alt_option_name = 'widget_recent_entries';
}