I'm developing a plugin that requires a couple of plugins from WordPress repository to work correctly.
Is it possible to download and install from WordPress repository and activate one or more plugin that my custom plugin requires automatically on plugin activation?
There is a safe and correct way to do this via PHP?
I'm developing a plugin that requires a couple of plugins from WordPress repository to work correctly.
Is it possible to download and install from WordPress repository and activate one or more plugin that my custom plugin requires automatically on plugin activation?
There is a safe and correct way to do this via PHP?
Share Improve this question asked Oct 15, 2021 at 5:45 icolumbroicolumbro 791 silver badge9 bronze badges 2- Related: wordpress.stackexchange.com/questions/107009/… – Jesse Nickles Commented Dec 12, 2022 at 18:28
- Does this answer your question? How would you require and automatically download dependent plugins? – Jesse Nickles Commented Mar 8, 2024 at 6:27
2 Answers
Reset to default 2TGMPA is a useful php class to perform the required actions: http://tgmpluginactivation.com/
In addition with Andrea Somovigo's answer, this is a list of services and open sources that might be useful:
- WP Package Editor
WP2E is a service allowing developers to create and manage installation packages to deliver and maintain sets of interdependent themes and plugins.
- TGM Plugin Activation
TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins).
- WPFavs
It is a Free WordPress plugin manager and bulk installation tool
- WordPress Packagist
This site mirrors the WordPress plugin and theme directories as a Composer repository.
- WP Plugin Dependencies
This meta-plugin allows regular plugins to specify other plugins that they depend upon.
- WP Dependency Installer
A lightweight class to add to WordPress plugins/themes to automatically install plugin dependencies.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1737607513a3958855.html
评论列表(0条)