WP_Widget_Pages::__construct() – Sets up a new Pages widget instance.

You appear to be a bot. Output may be restricted

Description

Sets up a new Pages widget instance.

Usage

WP_Widget_Pages::__construct();

Parameters

Returns

void

Source

File name: wordpress/wp-includes/widgets/class-wp-widget-pages.php
Lines:

1 to 9 of 9
  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 );
  }
 

 View on GitHub View on Trac