Required Plugins
This plugin creates a Must-Use plugin on activation that <em>MUST</em> be deleted on deactivation. Careful when deactivating/deleting this plugin. Only deactivate and delete from Plugins page. If not, <code>mu-plugins/wph-required-plugins.php</code> needs to be deleted manually.
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/yakyakman/wph-required-plugins/archive/refs/heads/master.zipDeclares an update source (https://github.com/yakyakman/wph-required-plugins), so updates arrive through the plugin's own updater.
From the readme
WPHelper Required Plugins
Wordpress plugin for requiring and auto-activation plugin dependencies.
- Disables de-activation of plugins from the WordPress Admin Plugins page.
- Auto-activates required plugins.
- Plugins and themes can require plugin dependencies using a wph-required-plugins.json file.
- Global require dependecies creating a wph-required-plugins.json file in wp-content/.
Installation & Update
Activate plugin. Upon activation the library is installed in mu-plugins/ directory.
Example Usage
Use the following filter instead to network activate plugins:
Use API function wphrequiredpluginsadd():
Change the Text:
To change the label from Required Plugin to something else, use the following filter/code:
Hide Required Plugins (off by default)
To hide your required plugins from the plugins list, use the following filter/code:
This will make any plugin that is required simply not show in the plugins list.