PHP code example of lukasbesch / disable-plugins
1. Go to this page and download the library: Download lukasbesch/disable-plugins library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lukasbesch / disable-plugins example snippets
Config::define('DISABLED_PLUGINS', [
'autoptimize/autoptimize.php',
'updraftplus/updraftplus.php',
'wp-super-cache/wp-cache.php',
'w3-total-cache/w3-total-cache.php',
]);
if (! defined('DISABLED_PLUGINS')
define('DISABLED_PLUGINS', [
'autoptimize/autoptimize.php',
]);
}