DEV Community

Cover image for Why Can’t I Add or Install Plugins in WordPress?
John Muange
John Muange

Posted on

Why Can’t I Add or Install Plugins in WordPress?

The solution is here
Please find below the code into your
“wp-config.php” file.

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

If above code is used then replace with below code,

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

Thanks!

Top comments (1)

Collapse
 
murkrage profile image
Mike Ekkel

It would be great to add some information about the problem! You can use code blocks to make the code appear as if it were in an editor. Use a backtick (`) for inline code or three backticks for a code block.