WordPress at Your Fingertips
function is not described

WC_Widget_Product_Search::widget() public WC 1.0

Output widget.

{} It's a method of the class: WC_Widget_Product_Search{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Widget_Product_Search = new WC_Widget_Product_Search();
$WC_Widget_Product_Search->widget( $args, $instance );
$args(array) (required)
Arguments.
$instance(array) (required)
Widget instance.

Notes

Code of WC_Widget_Product_Search::widget() WC 5.8.0

public function widget( $args, $instance ) {
	$this->widget_start( $args, $instance );

	get_product_search_form();

	$this->widget_end( $args );
}