PluginProbe ʕ •ᴥ•ʔ
Disable Admin Notices – Hide Dashboard Notifications / 1.4.7
Disable Admin Notices – Hide Dashboard Notifications v1.4.7
1.4.7 1.4.6 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 / migrations / 010007.php
disable-admin-notices / migrations Last commit date
010007.php 1 year ago
010007.php
23 lines
1 <?php #comp-page builds: premium
2
3 /**
4 * Updates for altering the table used to store statistics data.
5 * Adds new columns and renames existing ones in order to add support for the new social buttons.
6 */
7 class WDNUpdate010007 extends Wbcr_Factory480_Update {
8
9 public function install()
10 {
11 global $wpdb;
12
13 $hidden_notices = $this->plugin->getPopulateOption('hidden_notices');
14
15 $all_users = $wpdb->get_col("SELECT ID FROM {$wpdb->users}");
16
17 if( !empty($all_users) && !empty($hidden_notices) ) {
18 foreach($all_users as $user_id) {
19 update_user_meta($user_id, $this->plugin->getOptionName('hidden_notices'), $hidden_notices);
20 }
21 }
22 }
23 }