Disable Plugin and Theme Update and Installation on WordPress

Posted on December 3, 2016 at 5:02 pm

Prevents users from being able to update or install plugins and themes, plus removes the “Editor” menu so users can’t edit files. Add this line to your wp-config.php file (above the “ABSPATH” otherwise it won’t work):

define('DISALLOW_FILE_MODS', true);

To allow plugins and themes installation and updates but disable only the file editor, use this:

define('DISALLOW_FILE_EDIT', true);

Updated on December 11, 2016 at 11:52 am

Receive updates via email

Other Posts

Updated Posts