'business_press_social_widget', 'description' => __( 'Display social profile. Social link will be fetch from customize.', 'business-press' ), ); parent::__construct( 'business_press_social_widget', __( 'Business Press Social Profile', 'business-press' ), $widget_ops ); } /** * Outputs the content of the widget * * @param array $args * @param array $instance */ public function widget( $args, $instance ) { // outputs the content of the widget echo $args['before_widget']; if( !empty( $instance['title'] ) ) { echo $args['before_title'] . esc_attr( $instance['title'] ) . $args['after_title']; } ?>