__( 'About Us Widget', 'cyclone-business' ), ) ); } // Creating widget front-end // This is where the action happens public function widget( $args, $instance ) { $title = apply_filters( 'widget_title', $instance['title'] ); $desc = apply_filters( 'widget_desc', $instance['desc'] ); // before and after widget arguments are defined by themes echo $args['before_widget']; if ( ! empty( $title ) && ! empty( $desc )) // This is where you run the code and display the output echo $args['before_title'] . '