-
Notifications
You must be signed in to change notification settings - Fork 2
/
uninstall.php
45 lines (40 loc) · 1.43 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
<?php
// If uninstall not called from WordPress, exit.
if (!defined('WP_UNINSTALL_PLUGIN') || !WP_UNINSTALL_PLUGIN || dirname(WP_UNINSTALL_PLUGIN) != dirname(plugin_basename(__FILE__))) {
status_header(404);
exit;
}
// delete transients
delete_transient('pipdig_random_posts_widget');
delete_transient('pipdig_popular_posts_widget');
delete_transient('pipdig_clw_map');
delete_transient('p3_stats_gen');
delete_transient('p3_youtube_widget');
delete_transient('pipdig_shaq_fu');
delete_transient('p3_theme_checker');
delete_transient('pipdig_active');
// delete database entries
//delete_option('pipdig_links');
delete_option('p3_bloglovin_count');
delete_option('p3_pinterest_count');
delete_option('p3_twitter_count');
delete_option('p3_instagram_count');
delete_option('p3_youtube_count');
delete_option('p3_google_plus_count');
delete_option('pipdig_p3_snapchat_account');
delete_option('p3_twitter_handle');
delete_option('p3_deactivate_plugins');
delete_option('p3_update_notice_1');
delete_option('p3_update_notice_2');
delete_option('p3_update_notice_3');
delete_option('p3_instagram_transient_cleared');
delete_option('pipdig_instagram_users');
delete_option('pipdig_pinterest_users');
delete_option('pipdig_youtube_channels');
//delete_option('p3_social_transfer');
//delete_option('p3_navbar_icons_transfer');
/*
delete_option('pipdig_p3_posts_per_page_set');
delete_option('pipdig_p3_header_set');
delete_option('pipdig_p3_comments_set');
*/