WP Manifestindependent plugin directory
manifest / developer / playground-plugin-admin-notice

Playground Admin Notice

Basic plugin example to display a notice inside WordPress admin

by Antonio Sejas · github.com/sejas/playground-plugin-admin-notice · website

1stars
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/sejas/playground-plugin-admin-notice/archive/refs/heads/main.zip

Basic example demonstrating how to display an admin notice inside the WordPress Playground.

This repository includes the plugin source code, the plugin ZIP file, the default blueprint.json, and the blueprint-override-message.json for overriding the default message.

Screenshot

How to use

This repository is designed for using the raw GitHub URLs to load both the plugin and the blueprint into the WordPress Playground.

WordPress Playground URLs

Override notice message using site options

Blueprint for displaying a custom message

{
  "landingPage": "/wp-admin/",
  "steps": [
    {
      "step": "setSiteOptions",
      "options": {
        "playground_admin_notice": "This is a custom message."
      }
    },
    {
      "step": "installPlugin",
      "pluginZipFile": {
        "resource": "url",
        "url": "https://raw.githubusercontent.com/sejas/playground-plugin-admin-notice/main/playground-plugin-admin-notice.zip"
      }
    },
    {
      "step": "login",
      "username": "admin",
      "password": "password"
    }
  ]
}

How to contribute

Please feel welcome to open an issue or submit a pull request if you have any suggestions for improvements or modifications.