'biz_news_search_widget', // CSS class name 'description' => esc_html__( 'Pro- WooCommerce Search Widget with Categories.', 'biz-news' ), ); // instantiate the widget parent::__construct( 'biz_news_Search_Widget', esc_html__( 'WooCommerce Search Widget', 'biz-news' ), $options ); } public function widget( $args, $instance ) { // get the widget configuration $title = ""; if(isset($instance['title'])) $title = $instance['title']; if ( $title ) { echo wp_kses_post($args['before_title']) . wp_kses_post($title) . wp_kses_post($args['after_title']); } ?>