-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuninstall.php
38 lines (31 loc) · 1.33 KB
/
uninstall.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* Fired when the plugin is uninstalled.
*/
// If uninstall not called from WordPress, then exit.
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit;
}
if ( ! defined( 'VRTS_SERVICE_ENDPOINT' ) ) {
define( 'VRTS_SERVICE_ENDPOINT', getenv( 'VRTS_SERVICE_ENDPOINT' ) ?: 'https://bleech-vrts-app.blee.ch/api/v1/' );
}
require_once 'includes/features/class-admin-notices.php';
require_once 'includes/features/class-metaboxes.php';
require_once 'includes/features/class-service.php';
require_once 'includes/features/class-subscription.php';
require_once 'includes/features/class-cron-jobs.php';
require_once 'includes/services/class-manual-test-service.php';
require_once 'includes/tables/class-alerts-table.php';
require_once 'includes/tables/class-tests-table.php';
require_once 'includes/tables/class-test-runs-table.php';
Vrts\Features\Admin_Notices::delete_dismissed_options();
Vrts\Features\Metaboxes::delete_meta_keys();
Vrts\Features\Service::disconnect_service();
Vrts\Features\Service::delete_option();
Vrts\Features\Subscription::delete_options();
Vrts\Features\Cron_Jobs::remove_jobs();
$vrts_manual_test_service = new Vrts\Services\Manual_Test_Service();
$vrts_manual_test_service->delete_option();
Vrts\Tables\Alerts_Table::uninstall_table();
Vrts\Tables\Tests_Table::uninstall_table();
Vrts\Tables\Test_Runs_Table::uninstall_table();