How to Disable the WordPress Core Update Notification in the Dashboard Area

Last updated on
Apr 11, 2024

Keeping your WordPress site updated is crucial for the sake of security. However, constantly seeing a notification update on the dashboard area might is something you want to avoid as it can be annoying. This article will show you how to disable the WordPress core update notification in the dashboard area of your WordPress site. There are two ways to do. First, you can use a plugin.

Second, you can add a new function instead. This article will show you the latter method. If you prefer to use a plugin, one of our recommendations is Disable Admin Notices individually.

To add a new function, you need to edit the functions.php file of your theme. Just in case everything doesn’t go the way you expected, you can backup the file first before you start editing it. Once you are ready, go to Appearance -> Theme Editor on your WordPress dashboard. Find the functions.php file on the right panel and click it to edit it.

Paste the following code at the bottom side on the functions.php file.

add_action('after_setup_theme', 'remove_core_updates');
function remove_core_updates() { 
if (!current_user_can('update_core')) {
return; 
} 
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'); 
}

Example of the code placement.

Don’t forget to click the Update File button to apply the changes. Once done, reload your WordPress dashboard.

This page may contain affiliate links, which help support the project. Read our affiliate disclosure.

Aliko Sunawang

Aliko is a professional blogger and web creator. He has been blogging with WordPress since 2012. In his spare time, he loves going out to take some photos. More

Turn Your WP Knowledge into revenue ♻️

With the right, algorithm-proof blogging approach.

learn more

Want to turn your WordPress knowledge into sustainable revenue?

Where should we send the template?

Thanks! Please check your inbox to confirm.