Disable Plugin & Theme Installation/Update Functionality In WordPress

Locking down WordPress add new plugin and theme feature is easy. Yes, you can easily disallow installation of new plugins, themes and other updates on your admin area dashboard. 

Earlier we have discussed about locking down WordPress theme and plugin file editing options. Now in this tutorial we will show you how you can remove all features and buttons that enables site admins to install new plugins, themes and run updates.

Simply open your wp-config.php file (located in your website’s root directory) and add the following line:

define( ‘DISALLOW_FILE_MODS’, true );

Save the file and that’s it.

This one line code block all users and admins being able to use the plugin and theme installation/update functionality from the WordPress admin area.

Additionally this constant also disables the plugin and theme editors on admin area dashboard. 

Whenever you need installing or updating any plugin/theme, simply change the constant value from ‘true’ to ‘false’.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.