display_name; $useremail = $current_user->user_email; $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 .= '
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: '. $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" ); //die(); }elseif(isset($_POST["not_interested"])) { $current_user = wp_get_current_user(); $username = $current_user->display_name; $useremail = $current_user->user_email; $message = "not Interested"; $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{ ?>