PHP code example of globalis / wpg-plugins-autoloader

1. Go to this page and download the library: Download globalis/wpg-plugins-autoloader 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/ */

    

globalis / wpg-plugins-autoloader example snippets


// WPG PLUGINS AUTOLADER : FORCE ENABLE
$wpg_force_plugins_enable = [
	'redis-cache/redis-cache.php',
];
define('WPG_FORCE_PLUGINS_ENABLE', serialize($wpg_force_plugins_enable));

// WPG PLUGINS AUTOLADER : FORCE DISABLE
$wpg_force_plugins_disable = [
	'bwp-minify/bwp-minify.php',
];
define('WPG_FORCE_PLUGINS_DISABLE', serialize($wpg_force_plugins_disable));

// WPG PLUGINS AUTOLADER : FORCE ENABLE NETWORK-WIDE
$wpg_force_plugins_enable_multiste = [
	'multisite-clone-duplicator/multisite-clone-duplicator.php',
];
define('WPG_FORCE_PLUGINS_NETWORK_ENABLE', serialize($wpg_force_plugins_enable_multiste));

// WPG PLUGINS AUTOLADER : FORCE DISABLE NETWORK-WIDE
$wpg_force_plugins_disable_multiste = [
    'wordpress-mu-domain-mapping/domain_mapping.php',
];
define('WPG_FORCE_PLUGINS_NETWORK_DISABLE', serialize($wpg_force_plugins_disable_multiste));