'google-custom-search', 'description' => __('Enable Google Custom Search on Your Website.', 'aadya') ); /* Widget control settings. */ $control_ops = array( 'width' => 300, 'height' => 350, 'id_base' => 'widget-google-cse' ); /* Create the widget. */ $this->WP_Widget( 'widget-google-cse', __('(Aadya) Google Custom Search', 'aadya'), $widget_ops, $control_ops ); } public function form( $instance ) { $instance = wp_parse_args( (array) $instance, array( 'google_cse_unique_id' => '', 'search_results_page_url' => '') ); if ( isset( $instance[ 'google_cse_unique_id' ] ) ) { $google_cse_unique_id = $instance[ 'google_cse_unique_id' ]; } if ( isset( $instance[ 'search_results_page_url' ] ) ) { $search_results_page_url = $instance[ 'search_results_page_url' ]; } ?>
(e.g: 095382442174838362754:hisuukncdfg )
(e.g: http://mysite.com/page-cse)