Skip to content

Commit f468498

Browse files
only free active
1 parent 33ef108 commit f468498

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

classes/Visualizer/Module/Admin.php

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,12 @@ public function addSplChartSchedules( $feature, $chart_id, $plan ) {
9191
}
9292

9393
$license = __( 'PRO', 'visualizer' );
94-
switch ( $plan ) {
95-
case 1:
96-
$license = __( 'Developer', 'visualizer' );
97-
break;
94+
if ( Visualizer_Module::is_pro() ) {
95+
switch ( $plan ) {
96+
case 1:
97+
$license = __( 'Developer', 'visualizer' );
98+
break;
99+
}
98100
}
99101

100102
$hours = array(
@@ -118,9 +120,11 @@ public function addSplChartSchedules( $feature, $chart_id, $plan ) {
118120
// fall-through.
119121
break;
120122
case 'csv':
121-
$hours = array(
122-
'0' => __( 'Live', 'visualizer' ),
123-
);
123+
if ( Visualizer_Module::is_pro() ) {
124+
$hours = array(
125+
'0' => __( 'Live', 'visualizer' ),
126+
);
127+
}
124128
break;
125129
default:
126130
return;

0 commit comments

Comments
 (0)