Skip to content

Commit 70b14cf

Browse files
refactor: remove install category from survey
1 parent e56b5ed commit 70b14cf

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

includes/admin/class-rop-admin.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,24 +1748,10 @@ public function get_survey_metadata( $data, $page_slug ) {
17481748
$license_data = get_option( 'tweet_old_post_pro_license_data', array() );
17491749

17501750
$install_days_number = intval( ( time() - get_option( 'rop_first_install_date', time() ) ) / DAY_IN_SECONDS );
1751-
$install_category = 0; // Normalized value.
1752-
1753-
if ( 0 === $install_days_number || 1 === $install_days_number ) {
1754-
$install_category = 0;
1755-
} elseif ( 1 < $install_days_number && 8 > $install_days_number ) {
1756-
$install_category = 7;
1757-
} elseif ( 8 <= $install_days_number && 31 > $install_days_number ) {
1758-
$install_category = 30;
1759-
} elseif ( 30 < $install_days_number && 90 > $install_days_number ) {
1760-
$install_category = 90;
1761-
} elseif ( 90 <= $install_days_number ) {
1762-
$install_category = 91;
1763-
}
17641751

17651752
$data = array(
17661753
'environmentId' => 'clwgcs7ia03df11mgz7gh15od',
17671754
'attributes' => array(
1768-
'days_since_install' => strval( $install_category ),
17691755
'license_status' => ! empty( $license_data->license ) ? $license_data->license : 'invalid',
17701756
'free_version' => $this->version,
17711757
'install_days_number' => $install_days_number,

0 commit comments

Comments
 (0)