We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7116131 + e535c91 commit da87ee4Copy full SHA for da87ee4
inc/admin.php
@@ -264,11 +264,14 @@ public function should_show_upgrade() {
264
if ( $service_data['plan'] !== 'free' ) {
265
return false;
266
}
267
- $visitors = isset( $service_data['visitors_limit'] ) ? (int) $service_data['visitors_limit'] : 0;
268
- if ( $visitors < 3000 ) {
+ $visitors_limit = isset( $service_data['visitors_limit'] ) ? (int) $service_data['visitors_limit'] : 0;
+ $visitors_left = isset( $service_data['visitors_left'] ) ? (int) $service_data['visitors_left'] : 0;
269
+ if ( $visitors_limit === 0 ) {
270
+ return false;
271
+ }
272
+ if ( $visitors_left > 2000 ) {
273
274
-
275
return true;
276
277
0 commit comments