WP_Widget_Pages::__construct()publicWP 2.8.0

Sets up a new Pages widget instance.

Method of the class: WP_Widget_Pages{}

No Hooks.

Return

null. Nothing (null).

Usage

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

Changelog

Since 2.8.0 Introduced.

WP_Widget_Pages::__construct() code WP 6.5.2

public function __construct() {
	$widget_ops = array(
		'classname'                   => 'widget_pages',
		'description'                 => __( 'A list of your site’s Pages.' ),
		'customize_selective_refresh' => true,
		'show_instance_in_rest'       => true,
	);
	parent::__construct( 'pages', __( 'Pages' ), $widget_ops );
}