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/yakyakman/wph-required-plugins/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.
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.