Hide the WordPress update notifications from all users except administrators • CSSIgniter

PHOTO EMBED

Wed Aug 31 2022 21:15:08 GMT+0000 (Coordinated Universal Time)

Saved by @satinbest #php

//Hide update notice for non-admin users

function hide_core_update_notifications_from_users() {
	if ( ! current_user_can( 'update_core' ) ) {
		remove_action( 'admin_notices', 'update_nag', 3 );
	}
}
add_action( 'admin_head', 'hide_core_update_notifications_from_users', 1 );
content_copyCOPY

Hide update notice for non-admin users - bloat

https://www.cssigniter.com/hide-the-wordpress-update-notifications-from-all-users-except-administrators/