PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.11.14
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.11.14
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
← All changes | classes/Visualizer/Module/Sources.php +10 -3 3.10.03.11.14 View file →
@@ -137,17 +137,24 @@
137 137 if ( empty( $feature ) ||
138 138 ( in_array( $feature, $biz_features, true ) && ! apply_filters( 'visualizer_is_business', false ) ) ||
139 139 ( in_array( $feature, $pro_features, true ) && ! Visualizer_Module::is_pro() )
140 140 ) {
141 + // translators: $s - the name of the plan (PRO).
141 142 $msg = sprintf( __( 'Upgrade to %s to activate this feature!', 'visualizer' ), 'PRO' );
142 - if ( Visualizer_Module::is_pro() && in_array( $feature, $biz_features, true ) ) {
143 - $msg = sprintf( __( 'Upgrade your license to at least the %s version to activate this feature!', 'visualizer' ), 'DEVELOPER' );
143 + // translators: $s - the name of the plan (Plus).
144 + $plus_msg = sprintf( __( 'Upgrade to %s plan to activate this feature!', 'visualizer' ), 'Plus' );
145 + if ( in_array( $feature, $biz_features, true ) && Visualizer_Module::is_pro() ) {
146 + $msg = $plus_msg;
144 147 }
148 + if ( in_array( $feature, [ 'db-query', 'chart-permissions' ], true ) ) {
149 + $msg = $plus_msg;
150 + }
151 +
145 152 $return = '<div class="only-pro-content">';
146 153 $return .= ' <div class="only-pro-container">';
147 154 $return .= ' <div class="only-pro-inner">';
148 155 $return .= ' <p>' . $msg . '</p>';
149 - $return .= ' <a target="_blank" href="' . tsdk_utmify( Visualizer_Plugin::PRO_TEASER_URL, esc_attr( $feature ) ) . '" title="' . __( 'Buy now', 'visualizer' ) . '">' . __( 'Buy now', 'visualizer' ) . '</a>';
156 + $return .= ' <a target="_blank" href="' . tsdk_utmify( Visualizer_Plugin::PRO_TEASER_URL, esc_attr( $feature ) ) . '" title="' . __( 'Upgrade Now', 'visualizer' ) . '">' . __( 'Upgrade Now', 'visualizer' ) . '</a>';
150 157 $return .= ' </div>';
151 158 $return .= ' </div>';
152 159 $return .= '</div>';
153 160 }