admin管理员组

文章数量:1026989

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
Add a comment  | 

2 Answers 2

Reset to default 2

TGMPA 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.

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
Add a comment  | 

2 Answers 2

Reset to default 2

TGMPA 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.

本文标签: Automatically downloadinstall and activate plugins that my plugin dependshow