Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/wp-globalis-tools/wpg-plugins-autoloader/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Force enable/disable plugins with environment config
Installation
- Parse below code to your wp-config/< WP_ENV >/options.php file.
// 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));
- Modify $wpg_force_plugins_enable and $wpg_force_plugins_disable as you wish.