'aspro_slider_widget', 'description' => esc_html__( 'Best for Front Page', 'aspro' ) ); parent::__construct( 'aspro_slider_widget', ' ' . esc_html__( 'Aspro: Slider', 'aspro' ), $widget_ops ); } /** * Widget update. * * @param $new_instance * @param $old_instance * @return mixed */ function update( $new_instance, $old_instance ) { $instance = $old_instance; $instance['category'] = absint( $new_instance['category'] ); return $instance; } /** * Form view. * * @param $instance */ function form( $instance ) { ?>