forked from BoldGrid/boldgrid-inspirations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuninstall.php
64 lines (45 loc) · 1.85 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
// @todo Determine best approach for clearing shared options.
return;
// Abort if uninstall is not called from WordPress.
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit();
}
// Remove the API key and other plugin data from the database:
delete_option( 'boldgrid_api_key' );
delete_option( 'imhwpb_api_key' );
delete_option( 'boldgrid_attribution' );
delete_option( 'imhwpb_attribution' );
delete_option( 'boldgrid_install_options' );
delete_option( 'imhwpb_install_options' );
delete_option( 'boldgrid_installed_page_ids' );
delete_option( 'imhwpb_installed_page_ids' );
delete_option( 'boldgrid_installed_pages_metadata' );
delete_option( 'imhwpb_installed_pages_metadata' );
delete_option( 'boldgrid_todo' );
delete_option( 'imhwpb_todo' );
delete_option( 'boldgrid_asset' );
delete_option( 'imhwpb_asset' );
delete_option( 'boldgrid_has_built_site' );
delete_option( 'imhwpb_has_built_site_with_imhwpb' );
delete_option( 'boldgrid_show_tip_start_editing' );
delete_option( 'imhwpb_show_tip_start_editing' );
delete_option( 'boldgrid_built_as_preview_site' );
delete_option( 'imhwpb_built_as_preview_site' );
delete_option( 'boldgrid.css' );
delete_option( 'imhwpbgrid.css' );
delete_option( 'boldgrid_reseller' );
delete_option( 'imhwpb_reseller' );
delete_option( 'boldgrid_settings' );
delete_option( 'imhwpb_settings' );
delete_transient( 'boldgrid_valid_api_key' );
delete_transient( 'imhwpb_valid_api_key' );
delete_site_option( 'boldgrid_settings' );
delete_site_transient( 'boldgrid_api_data' );
delete_site_transient( 'imhwpb_api_data' );
if ( is_multisite() ) {
delete_site_option( 'boldgrid_we_are_currently_installing_a_theme' );
delete_site_option( 'imhwpb_we_are_currently_installing_a_theme' );
delete_site_option( 'boldgrid_we_are_currently_installing_this_theme' );
delete_site_option( 'imhwpb_we_are_currently_installing_this_theme' );
}