-
Notifications
You must be signed in to change notification settings - Fork 7
/
uninstall.php
49 lines (44 loc) · 1.8 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
39
40
41
42
43
44
45
46
47
48
49
<?php
// if uninstall.php is not called by WordPress, die
if (!defined('WP_UNINSTALL_PLUGIN')) {
die;
}
// Let's delete the Options
delete_option( 'wpss_settings_options' );
delete_option( 'wpss_db_advanced_info' );
delete_option( 'wpss_donate_notice' );
// Delete option for multisite
delete_site_option( 'wpss_settings_options' );
delete_site_option( 'wpss_db_advanced_info' );
delete_site_option( 'wpss_donate_notice' );
// Unregister settings
unregister_setting( 'wp_server_stats', 'wpss_settings_options' );
// Delete transients
delete_transient( 'wpss_server_location' );
delete_transient( 'wpss_cpu_count' );
delete_transient( 'wpss_cpu_core_count' );
delete_transient( 'wpss_server_os' );
delete_transient( 'wpss_db_software' );
delete_transient( 'wpss_db_version' );
delete_transient( 'wpss_db_max_connection' );
delete_transient( 'wpss_db_max_packet_size' );
delete_transient( 'wpss_db_disk_usage' );
delete_transient( 'wpss_db_index_disk_usage' );
delete_transient( 'wpss_php_max_upload_size' );
delete_transient( 'wpss_php_max_post_size' );
delete_transient( 'wpss-donate-notice' );
delete_transient( 'wpss_total_ram' );
// Delete option for multisite
delete_site_transient( 'wpss_server_location' );
delete_site_transient( 'wpss_cpu_count' );
delete_site_transient( 'wpss_cpu_core_count' );
delete_site_transient( 'wpss_server_os' );
delete_site_transient( 'wpss_db_software' );
delete_site_transient( 'wpss_db_version' );
delete_site_transient( 'wpss_db_max_connection' );
delete_site_transient( 'wpss_db_max_packet_size' );
delete_site_transient( 'wpss_db_disk_usage' );
delete_site_transient( 'wpss_db_index_disk_usage' );
delete_site_transient( 'wpss_php_max_upload_size' );
delete_site_transient( 'wpss_php_max_post_size' );
delete_site_transient( 'wpss-donate-notice' );