Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WordPress Playground integration #1266

Closed
1 of 3 tasks
jeffpaul opened this issue Sep 5, 2024 · 2 comments · Fixed by #1282
Closed
1 of 3 tasks

Add WordPress Playground integration #1266

jeffpaul opened this issue Sep 5, 2024 · 2 comments · Fixed by #1282
Assignees
Labels
help wanted type:enhancement New feature or request.
Milestone

Comments

@jeffpaul
Copy link
Member

jeffpaul commented Sep 5, 2024

Is your enhancement related to a problem? Please describe.

  • add blueprint to github folder
  • add repo badge to playground

Note that we'll want to set up the playground as a multisite, not fully certain that's yet possible so if not let's open an issue upstream in the playground repo and then mark this as blocked by that.

Designs

No response

Describe alternatives you've considered

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jeffpaul jeffpaul added type:enhancement New feature or request. help wanted labels Sep 5, 2024
@jeffpaul jeffpaul added this to the 2.1.0 milestone Sep 5, 2024
@jeffpaul jeffpaul moved this from Incoming to To Do in Open Source Practice Sep 5, 2024
@dottxado
Copy link
Contributor

dottxado commented Oct 7, 2024

Hello 👋 I am studying Playground and I stumbled upon this issue 😄

If you need a blueprint to run a multisite WordPress instance with your plugin installed and activated, here it is:

{
  "$schema": "https://playground.wordpress.net/blueprint-schema.json",
  "landingPage": "wp-admin/network/plugins.php",
  "phpExtensionBundles": [
    "kitchen-sink"
  ],
  "features": {
    "networking": true
  },
  "steps": [
    {
      "step": "enableMultisite"
    },
    {
      "step": "installPlugin",
      "pluginZipFile": {
        "resource": "url",
        "url": "https://github-proxy.com/proxy/?repo=10up/distributor&branch=stable"
      }
    },
    {
      "step": "wp-cli",
      "command": "wp plugin activate distributor-stable --network"
    }
  ]
}

You can test it with this link

I have enabled the multisite, installed Distributor from GitHub using the stable branch and activated it in the network using WP-CLI. Sadly, seems that there is no other choice to activate a network-wide plugin than installing the whole WP-CLI 🤔

I would be happy to work on a PR to add the blueprint to your repo, please let me know 💪

@dkotter
Copy link
Collaborator

dkotter commented Oct 8, 2024

I would be happy to work on a PR to add the blueprint to your repo, please let me know

@dottxado That would be great if you have time to get a PR open for that. Thanks!

@jeffpaul jeffpaul moved this from To Do to In Progress in Open Source Practice Oct 14, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in Open Source Practice Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted type:enhancement New feature or request.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants