Turning off wpmu notices in dashboard


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 */


/* Update Notifications Notice */

if ( !function_exists( ‘wdp_un_check’ ) ) {

function wdp_un_check() {

if ( !class_exists(‘WPMUDEV_Update_Notifications’:wink: && current_user_can(‘edit_users’:wink: )

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’:wink: . ‘</p></div>’;


add_action( ‘admin_notices’, ‘wdp_un_check’, 5 );

add_action( ‘network_admin_notices’, ‘wdp_un_check’, 5 );