diff --git a/src/views/snagshout-widget.php b/src/views/snagshout-widget.php index d2a3611..e858418 100644 --- a/src/views/snagshout-widget.php +++ b/src/views/snagshout-widget.php @@ -3,7 +3,10 @@ if (!$hide_title) { echo $before_title; - echo apply_filters('widget_title', $title); + echo apply_filters( + 'widget_title', + $title ? $title : 'Featured Coupon Codes' + ); echo $after_title; } diff --git a/src/widget/snagshout-widget-class.php b/src/widget/snagshout-widget-class.php index f318926..bc40181 100644 --- a/src/widget/snagshout-widget-class.php +++ b/src/widget/snagshout-widget-class.php @@ -36,6 +36,7 @@ function widget($args, $instance) { [ 'title' => 'Featured Coupon Codes', 'response' => $response, + 'hide_title' => false, ], $args, $instance