PluginProbe ʕ •ᴥ•ʔ
Disable Admin Notices – Hide Dashboard Notifications / trunk
Disable Admin Notices – Hide Dashboard Notifications vtrunk
1.4.5 trunk 1.0.0 1.0.2 1.0.3 1.0.5 1.0.6 1.1.1 1.1.3 1.1.4 1.2.0 1.2.2 1.2.3 1.2.4 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4
disable-admin-notices / uninstall.php
disable-admin-notices Last commit date
admin 5 months ago includes 3 months ago languages 3 years ago libs 3 months ago migrations 1 year ago vendor 1 month ago CHANGELOG.md 1 month ago clearfy.php 6 months ago disable-admin-notices.php 1 month ago readme.txt 1 month ago uninstall.php 2 years ago
uninstall.php
25 lines
1 <?php
2
3 // if uninstall.php is not called by WordPress, die
4 if( !defined('WP_UNINSTALL_PLUGIN') ) {
5 die;
6 }
7
8 // remove plugin options
9 global $wpdb;
10
11 if( !function_exists('is_plugin_active_for_network') ) {
12 require_once(ABSPATH . 'wp-admin/includes/plugin.php');
13 }
14
15 if( is_multisite() ) {
16 $wpdb->query("DELETE FROM {$wpdb->sitemeta} WHERE meta_key LIKE 'wbcr_dan_%';");
17 }
18
19 $wpdb->query("DELETE FROM {$wpdb->options} WHERE option_name LIKE 'wbcr_dan_%';");
20 $wpdb->query("DELETE FROM {$wpdb->usermeta} WHERE meta_key LIKE 'wbcr_dan_%'");
21
22
23
24
25