How to hide all WordPress update notifications in dashboard

When working on a project, it can be frustrating to have to deal with all the update notifications that are in the WordPress dashboard by default. It’s true, updates are important, but there are some cases where you might want to consider disabling update notifications for plugins, themes, or WordPress itself to avoid losing the changes you have made.

If you have made modifications to the core files of a theme, plugin or WordPress, for example, you may want to prevent your users from making updates, as you would lose the changes. That’s why the goal of hiding the notifications is for you to make these updates manually, making any necessary changes to the files yourself. In this article, we’ll show you how to hide all the updates notifications so you can work comfortably and only check them when you need to.

First of, you need to keep in mind that there are 2 main ways to hide all the notifications:

The most used option by those who are just entering the programming world is the implementation of a plugin that will take care of hiding the notifications for you. This way of disabling update notifications is the quickest and possibly also the easiest since normally plugins do not require much knowledge of programming or web development.

One of the most used plugins in this respect is ‘Disable admin notices individually‘. This plugin not only allows us to disable all the update notifications but also we can hide other annoying notifications from our dashboard, such as those that refer to licenses.

The other recommended way we can use to hide WordPress dashboard notifications is by entering code.

This may seem complex, but if we know what code to put in it isn’t that hard.

To do this, you must enter the code directly at the end of the functions.php file of the theme or child-theme you use for your site.

The code you enter will vary depending on what type of notification you want to hide.

If you want to disable all Plugin Notifications you can use the following code:

remove_action('load-update-core.php', 'wp_update_plugins');
add_filter('pre_site_transient_update_plugins', '__return_null');

Regarding themes, in order not to lose your modifications, you can use the following code to disable the update notifications:

remove_action('load-update-core.php', 'wp_update_themes');
add_filter('pre_site_transient_update_themes', create_function('$a', "return null;"));

Lastly, if you’re looking to disable WordPress core update notifications you can use the following code:

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');

}

Finally, if you decide that avoiding the notifications completely is not the solution, you can use a plugin to standardize the way they are displayed, or better yet, take them to a more comfortable position in the dashboard where you can simply consult them when you need to, showing them in context and divided into sections.

By using any of these methods you will get a site with virtually no notifications. While these types of changes are useful to avoid modifications, it is always advisable to make the updates manually, making the changes again in the files overwritten by the update. This can avoid many problems in the future.

We hope this article has been useful for you and that you have been able to learn how to How to hide all WordPress update notifications in the dashboard.

Recent Articles

How to Bulk Delete Media in WordPress

WordPress and media. That's the topic for a book. Sometimes is not easy to find what you need and when you have...

Custom Order Number for WooCommerce Will Saves You a Lot of Hassle!

WordPress is still the king of Content Management Systems (CMS). Thanks to its open-source nature, millions upon millions of users and PHP...

How to Manually Sort WooCommerce Products

WooCommerce is an e-commerce plugin for WordPress. It is a great way for the user to create an online store for their...

How to Delete All WooCommerce Products

Remove all WooCommerce products is a good thing, especially when you have got thousands of products and need to make your site...

How to bulk delete WordPress comments in PHPMyAdmin

Any user working on the computer system has the option in quickly deleting all the WordPress comments by using MySQL or phpMyAdmin....

Get in touch

Be our first-class reader, build a community and follow us on social media!

Leave A Reply

Please enter your comment!
Please enter your name here