wp-config.php » Can’t Add or Install Plugins in WordPress

Can’t Add or Install Plugins in WordPress

Q: Why can’t I add plugins in WordPress?

A: The following code was added to wp-config.php file that disables file editing and uploading.

define('DISALLOW_FILE_EDIT', true);
define('DISALLOW_FILE_MODS', true);

Simply remove these files from the wp-config.php file and then refresh the wp-admin page.

See also  How to Identify if My WordPress Website is Hacked?

Was this post helpful?

Leave a Comment

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.

Recommended