WP Manifestindependent plugin directory
manifest / developer / preview-in-playground-button-v3-example-simple

V3 Example (Simple)

Single-plugin example for the WordPress Playground v3 reusable preview workflows (kind: plugin shortcut).

by adamziel · github.com/adamziel/preview-in-playground-button-v3-example-simple

0stars
1forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/adamziel/preview-in-playground-button-v3-example-simple/archive/refs/heads/main.zip

Level 1 example of the WordPress Playground "Preview in Playground" v4 reusable workflows.

A single plugin with a (toy) build step. Demonstrates the simplest caller setup: one artifacts: entry on the build side and kind: plugin on the publish side.

Files

  • my-plugin.php — the plugin.
  • .github/workflows/pr-preview-build.yml — runs on pull_request, produces a zip.
  • .github/workflows/pr-preview-publish.yml — runs on workflow_run, exposes the zip and posts the preview button.

Both reusable workflows use WordPress/action-wp-playground-pr-preview at @v4. Update the build and publish references together when changing versions. The repository name retains v3 so existing links keep working.