function remove_notices() { $remove_hooks['all_admin_notices'] = array('UpdraftPlus' => array('show_admin_warning_unreadablelog' => 10, 'show_admin_warning_nolog' => 10, 'show_admin_warning_unreadablefile' => 10), 'UpdraftPlus_BackupModule_dropbox' => array('show_authed_admin_warning' => 10), 'UpdraftPlus_BackupModule_googledrive' => array('show_authed_admin_success' => 10)); foreach ($remove_hooks as $hook_name => $hooks) { foreach ($hooks as $class_name => $methods) { foreach ($methods as $method => $priority) { MainWP_Helper::remove_filters_for_anonymous_class($hook_name, $class_name, $method, $priority); } } } }