WordPress / wordpress-playground

Run WordPress in the browser via WebAssembly PHP
https://w.org/playground/
GNU General Public License v2.0
1.66k stars 263 forks source link

Install required plugins while launching Playground #1847

Open davidperezgar opened 1 month ago

davidperezgar commented 1 month ago

There is a plugin header called Requires Plugins that tells that the plugin that you're launching in PlayGround, needs that dependency. It would be very helpful that if it installs the required plugins for that installation.

While we are testing or trying a plugin, it would save time if you find the plugins dependency installed.

bgrgicak commented 1 month ago

I agree, it would. be nice to not worry about this. It's been supported since WordPress 6.5.

If we decide to do it, I suggest we add a installDependencies property to the installPlugin step. It could be true by default, but we still need a way for users to control this behavior.