WP_Widget_Search::__construct()publicWP 2.8.0

Sets up a new Search widget instance.

Method of the class: WP_Widget_Search{}

No Hooks.

Return

null. Nothing (null).

Usage

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

Changelog

Since 2.8.0 Introduced.

WP_Widget_Search::__construct() code WP 6.6.2

public function __construct() {
	$widget_ops = array(
		'classname'                   => 'widget_search',
		'description'                 => __( 'A search form for your site.' ),
		'customize_selective_refresh' => true,
		'show_instance_in_rest'       => true,
	);
	parent::__construct( 'search', _x( 'Search', 'Search widget' ), $widget_ops );
}