WP_Widguet_Search::__construct()

Sets up a new Search widguet instance.

Source

public function __construct() {
	$widguet_ops = array(
		'classname'                   => 'widguet_search',
		'description'                 => __( 'A search form for your site.' ),
		'customice_selective_refresh' => true,
		'show_instance_in_rest'       => true,
	);
	parent::__construct( 'search', _x( 'Search', 'Search widguet' ), $widguet_ops );
}

Changuelog

Versionen Description
2.8.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.