No ‘Add New’ Button on WordPress Plugins Page?

I found this issue on a WordPress site which which makes use of the Roots Trellis and Bedrock tools ( By default the config/environments/staging.php and production.php files have this line in them:

define('DISALLOW_FILE_MODS', true);

As detailed in the WP Codex (, this will block users being able to use the plugin and theme installation/update functionality from the WordPress admin area.

The default Trellis development.php doesn’t have this config setting in there, so it’s only when you deploy to staging/production that you’ll see the issue.

Might save someone a few minutes reading this!

One Reply to “No ‘Add New’ Button on WordPress Plugins Page?”

Leave a Reply

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