Menu

How to Disable All Plugins Updates and Block Notifications in WordPress

Simple code to disable all Notifications in WordPress Blogs/Website.
You must have write access to your website’s wp-config.php file in order to use this trick.

It is useful when you don’t want to get annoying notifications that push your mind to forcefully update a plugin unless you actually need to update it. Also, It helps keeping your website stable as some updated plugin may ruin its stability and may cause some malfunctioning when updated due to incompatibility.

Before Adding the Code

Plugins Asking to update to new version
Plugins Asking to update to new version

So here is the Code:

<?php

/*  
    Code by KharePHP.com
    Comment below two lines to allow Plugin Updates 
*/
    define('DISALLOW_FILE_EDIT', true);
    define('DISALLOW_FILE_MODS', true);

?>

It will disable all the notifications for updating any plugin, although you may manually update any plugin from back-end.

Tags: , ,

Leave a Reply

Your email address will not be published. Required fields are marked *