Disallow adding and deleting plugins in WordPress admin via wp-config.php

Suitable for when you are managing WordPress plugin install and updates via composer and you don’t want admin users changing them.

<?php
// Add to or edit in wp-config.php.
define( 'DISALLOW_FILE_MODS', TRUE );
define( 'DISALLOW_FILE_EDIT', TRUE );