File tree 1 file changed +1
-13
lines changed
1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -1097,26 +1097,14 @@ public function register_survey( $dash_data ) {
1097
1097
add_filter (
1098
1098
'themeisle-sdk/survey/neve ' ,
1099
1099
function ( $ data , $ page_slug ) use ( $ dash_data ) {
1100
-
1101
- $ install_category = 0 ;
1102
- $ install_days_number = intval ( ( time () - get_option ( 'neve_install ' , time () ) ) / DAY_IN_SECONDS );
1103
1100
1104
- if ( 1 < $ install_days_number && 8 > $ install_days_number ) {
1105
- $ install_category = 7 ;
1106
- } elseif ( 8 <= $ install_days_number && 31 > $ install_days_number ) {
1107
- $ install_category = 30 ;
1108
- } elseif ( 30 < $ install_days_number && 90 > $ install_days_number ) {
1109
- $ install_category = 90 ;
1110
- } elseif ( 90 <= $ install_days_number ) {
1111
- $ install_category = 91 ;
1112
- }
1101
+ $ install_days_number = intval ( ( time () - get_option ( 'neve_install ' , time () ) ) / DAY_IN_SECONDS );
1113
1102
1114
1103
$ data = array (
1115
1104
'environmentId ' => 'clr0ply35522h8up0bay2de4y ' ,
1116
1105
'attributes ' => array (
1117
1106
'plan ' => isset ( $ dash_data ['license ' ], $ dash_data ['license ' ]['tier ' ] ) ? $ dash_data ['license ' ]['tier ' ] : 0 ,
1118
1107
'license_status ' => isset ( $ dash_data ['license ' ], $ dash_data ['license ' ]['valid ' ] ) ? $ dash_data ['license ' ]['valid ' ] : 'invalid ' ,
1119
- 'days_since_install ' => $ install_category ,
1120
1108
'install_days_number ' => $ install_days_number ,
1121
1109
'free_version ' => $ dash_data ['version ' ],
1122
1110
),
You can’t perform that action at this time.
0 commit comments