Sarathlal N

Remove WordPress update notification on normal user dashboard

In the WordPress dashboard, there is an update notification system is available. It is too helpful for admin users.

If you allow dashboard access for WordPress users like subscribers, he can also see a related update notification. He can’t update the core, but he can notify the admin user about the updates.

WordPress Update Notification in Subscribers dashboard

It is better to disable core related notification from the normal user dashboard for better security.

add_action('after_setup_theme','remove_core_updates');
function remove_core_updates()
{
	if(! current_user_can('update_core')){
		add_action('init', create_function('$a',"remove_action( 'init', 'wp_version_check' );"),2);
		add_filter('pre_option_update_core','__return_null');
		add_filter('pre_site_transient_update_core','__return_null');
	}
}

Looking for a skilled WordPress/WooCommerce developer? I'm currently available for freelance, contract, or full-time remote opportunities! Let's create something amazing together. Send me a quick message, and I'll respond within 24 hours!

Recent Posts

  1. REST API Methods Explained with Best Practices for Building Clean and Secure APIs
  2. My 28-Day Plan to Master Modern WordPress Development Using AI Tools
  3. Scaling WordPress - How Custom Database Tables Solve the Post Meta Bottleneck
  4. WordPress Transients Explained - A Developer's Guide to Site Performance
  5. Behind the Click - The Hidden Journey of Your Web Requests

Your Questions / Comments

If you found this article interesting, found errors, or just want to discuss about it, please get in touch.