$six_weeks_ago ) { $this->visitors = get_transient( 'burst_review_visitors' ); if ( ! $this->visitors ) { $select = array( 'visitors' ); $data = BURST()->statistics->get_data( $select, 0, time(), [] ); $this->visitors = $data['visitors']; set_transient( 'burst_review_visitors', $this->visitors, DAY_IN_SECONDS ); } if ( $this->visitors > 100 ) { add_action( 'admin_notices', array( $this, 'show_leave_review_notice' ) ); } // always show the notice after 6 weeks have gone by if ( $activation_time < $six_weeks_ago ) { add_action( 'admin_notices', array( $this, 'show_leave_review_notice' ) ); } } } add_action( 'admin_init', array( $this, 'process_get_review_dismiss' ) ); } static function this() { return self::$_this; } public function show_leave_review_notice() { if ( isset( $_GET['burst_dismiss_review'] ) ) { return; } ?>
review-logo

visitors > 0 ) { burst_printf( __( 'Hi there! Your site is doing awesome! Burst Statistics has tracked %s visitors for you!', 'burst-statistics' ), $this->visitors ); } else { _e( 'Hi, you have been using Burst for more than a month now, awesome!', 'burst-statistics' ); } ?> 'review_notice', ) ) . '" target="_blank">', '' ); ?>

- Hessel