| @@ -180,10 +180,8 @@ | ||
| 180 | 180 | try { |
| 181 | 181 | # Perform import |
| 182 | 182 | $result = $this->importer->import_from_plugin($plugin); |
| 183 | 183 | |
| 184 | - Metasync_PostHog::import_batch($plugin, 'redirections', $result); | |
| 185 | - | |
| 186 | 184 | if ($result['success']) { |
| 187 | 185 | wp_send_json_success($result); |
| 188 | 186 | } else { |
| 189 | 187 | wp_send_json_error($result); |
| @@ -224,10 +222,8 @@ | ||
| 224 | 222 | wp_send_json_error(['message' => 'The CSV file is too large. Maximum size is 2 MB.']); |
| 225 | 223 | } |
| 226 | 224 | |
| 227 | 225 | $result = $this->importer->import_csv_file($file['tmp_name']); |
| 228 | - | |
| 229 | - Metasync_PostHog::import_batch('csv', 'redirections', $result); | |
| 230 | 226 | |
| 231 | 227 | if (!empty($result['success'])) { |
| 232 | 228 | wp_send_json_success($result); |
| 233 | 229 | } else { |