WP_Nav_Menu_Widget::__construct() – Sets up a new Navigation Menu widget instance.

You appear to be a bot. Output may be restricted

Description

Sets up a new Navigation Menu widget instance.

Usage

WP_Nav_Menu_Widget::__construct();

Parameters

Returns

void

Source

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

1 to 8 of 8
  public function __construct() {
    $widget_ops = array(
      'description'                 => __( 'Add a navigation menu to your sidebar.' ),
      'customize_selective_refresh' => true,
      'show_instance_in_rest'       => true,
    );
    parent::__construct( 'nav_menu', __( 'Navigation Menu' ), $widget_ops );
  }
 

 View on GitHub View on Trac