Skip to content

Commit fb3743f

Browse files
refactor: remove install category from survey
1 parent 0649e2f commit fb3743f

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

classes/Visualizer/Module/Admin.php

-15
Original file line numberDiff line numberDiff line change
@@ -1241,23 +1241,9 @@ public static function checkChartStatus( $type ) {
12411241
*/
12421242
public function get_survey_metadata( $data, $page_slug ) {
12431243
$install_date = get_option( 'visualizer_install', time() );
1244-
$install_category = 0;
12451244

12461245
$install_days_number = intval( ( time() - $install_date ) / DAY_IN_SECONDS );
12471246

1248-
if ( 0 === $install_days_number || 1 === $install_days_number ) {
1249-
$install_category = 0;
1250-
} elseif ( 1 < $install_days_number && 8 > $install_days_number ) {
1251-
$install_category = 7;
1252-
} elseif ( 8 <= $install_days_number && 31 > $install_days_number ) {
1253-
$install_category = 30;
1254-
} elseif ( 30 < $install_days_number && 90 > $install_days_number ) {
1255-
$install_category = 90;
1256-
} elseif ( 90 <= $install_days_number ) {
1257-
$install_category = 91;
1258-
}
1259-
1260-
12611247
$plugin_data = get_plugin_data( VISUALIZER_BASEFILE, false, false );
12621248
$plugin_version = '';
12631249
if ( ! empty( $plugin_data['Version'] ) ) {
@@ -1267,7 +1253,6 @@ public function get_survey_metadata( $data, $page_slug ) {
12671253
$data = array(
12681254
'environmentId' => 'cltef8cut1s7wyyfxy3rlxzs5',
12691255
'attributes' => array(
1270-
'days_since_install' => strval( $install_category ),
12711256
'free_version' => $plugin_version,
12721257
'pro_version' => defined( 'VISUALIZER_PRO_VERSION' ) ? VISUALIZER_PRO_VERSION : '',
12731258
'license_status' => apply_filters( 'product_visualizer_license_status', 'invalid' ),

0 commit comments

Comments
 (0)