WP_Widget_Search::__construct()
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() 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 ); }