display_name; $useremail = $current_user->user_email; $body .= ''; $body .= ''; $body .= ''; $body .= ''; if($banner_not_language){ $body .= ''; } if($banner_did_not){ $body .= ''; } if($cookies_settings){ $body .= ''; } if(@$banner_not_match_theme) { $body .= ''; } if(@$broke_site) { $body .= ''; } if(@$found_btter_plugin) { $body .= ''; } if(@$great_plugin) { $body .= ''; } if(@$other_checkBox) { $body .= ''; } $body .= '
User email: ' .$useremail. '
URL: ' .get_site_url(). '
Issues:
'.$banner_not_language.'
'.$banner_did_not.'
'.$cookies_settings.'
' . $banner_not_match_theme . '
' . $broke_site . '
Plugin name: ' . $plugin_name . '
Plugin name: ' . $great_plugin . '
Other Reason: ' . $other_reason . '
'; $message = $body; $to ="plugins.support@seersco.com"; $subject = "Feedback from seersco plugin"; $headers = 'From: Seers Plugin Support '. "\r\n" . 'Reply-To: Seers Plugin Support ' . "\r\n"; wp_mail($to, $subject, strip_tags($message), $headers); $plugin_data = get_plugin_data( __FILE__ ); $theplugin_name = $plugin_data['Name']; //on deactive plugin update in db $cookie_consent_url = get_option('SCCBPP_cookie_consent_url'); $postData = array( 'domain' => get_site_url(), 'isactive' => 0, 'secret' => self::$apisecrekkey, 'platform' => 'wordpress', 'pluginname' => $theplugin_name ); $request_headers = array( 'Content-Type' => 'application/json', 'Referer' => get_site_url(), ); //$url = "https://seersco.com/api/save-domain-credentials"; //$url = "https://seersco.backend/api/plugin-domain"; $url = "https://cmp.seersco.com/api/plugin-domain"; $postdata = json_encode($postData); $result = wp_remote_post( $url, array( 'method' => 'POST', 'redirection' => 5, 'httpversion' => '1.0', 'timeout' => 45, 'sslverify' => false, 'headers' => $request_headers, 'body' => $postdata, 'cookies' => array() ) ); flush_rewrite_rules(false); deactivate_plugins( plugin_basename( __FILE__ ), true ); flush_rewrite_rules(); $url = admin_url( 'plugins.php?deactivate=true' ); header( "Location: $url" ); //die(); }elseif(isset($_POST["not_interested"])) { $current_user = wp_get_current_user(); $username = $current_user->display_name; $useremail = $current_user->user_email; $body =''; $body .= ''; $body .= ''; $body .= ''; $body .= ''; $body .= '
User email: ' .$useremail. '
URL: ' .get_site_url(). '
Not interested: Skip and deactivate
'; $message = $body; $to ="plugins.support@seersco.com"; $subject = "Feedback from seersco plugin"; $headers = 'From: '. $useremail . "\r\n" . 'Reply-To: ' . $useremail . "\r\n"; wp_mail($to, $subject, strip_tags($message), $headers); flush_rewrite_rules(false); deactivate_plugins( plugin_basename( __FILE__ ), true ); flush_rewrite_rules(); $url = admin_url( 'plugins.php?deactivate=true' ); header( "Location: $url" ); }else{ echo ''; ?>

" class="broke_site">
">
" class="askOther" onclick="showother();">
" name="submit" class="submit-skip">
" name="not_interested" class="submit-skip">