dustin
Expert
Just Getting Started
Member Likes (0)
Hello
How do I turn off all WPMU notices in the dashboards for all users accept super admins? For example, in the code below for the dashboard feeds, do I cut out all of this code?
/* Call the function */
df_set_widget_options();
/* Update Notifications Notice */
if ( !function_exists( 'wdp_un_check' ) ) {
function wdp_un_check() {
if ( !class_exists('WPMUDEV_Update_Notifications') && current_user_can('edit_users') )
echo '<div class="error fade"><p>' . __('Please install the latest version of our free Update Notifications plugin which helps you stay up-to-date with the most stable, secure versions of WPMU DEV themes and plugins. More information »', 'wpmudev') . '</p></div>';
}
add_action( 'admin_notices', 'wdp_un_check', 5 );
add_action( 'network_admin_notices', 'wdp_un_check', 5 );
}

Responses (1)
WPMU DEV Fanatic (joined October 2009) Likes (0)
Hi Dustin,
Actually, messages and notices should only show for the Super Admin on a Multisite. If you install the Update Notifications plugin you can also configure it to not show any messages, even to Super Admin.
We advise you keep the messages in place for Super Admin, for security updates, but the option is there.
You can also refer to the following thread where an alternative solution is provided by Jonathan:
http://premium.wpmudev.org/forums/topic/how-to-hide-the-redpink-notification-of-wpmu-update-message-in-dashboard
Hope that helps!
-David
Become a member