'widget_tabs clearfix', 'description' => esc_html__( 'Tabs', 'passport' ) ); parent::__construct( 'passport_tabs_widget', esc_html__( 'Passport Tabs', 'passport' ), $widget_ops ); $this->alt_option_name = 'widget_tabs'; } // Creating widget front-end // This is where the action happens public function widget( $args, $instance ) { global $post; $first_tab = ! empty( $instance['first_tab'] ) ? $instance['first_tab'] : 'false'; $second_tab = ! empty( $instance['second_tab'] ) ? $instance['second_tab'] : 'false'; $third_tab = ! empty( $instance['third_tab'] ) ? $instance['third_tab'] : 'false'; ?>
'0', 'second_tab' => '0', 'third_tab' => '0', ) ); $first_tab = $instance['first_tab']; $second_tab = $instance['second_tab']; $third_tab = $instance['third_tab']; // Widget admin form ?>

id="get_field_id( 'first_tab' ); ?>" name="get_field_name( 'first_tab' ); ?>" />

id="get_field_id( 'second_tab' ); ?>" name="get_field_name( 'second_tab' ); ?>" />

id="get_field_id( 'third_tab' ); ?>" name="get_field_name( 'third_tab' ); ?>" />