Skip to content

sejas/playground-plugin-admin-notice

Repository files navigation

Playground Plugin Admin Notice

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.

About

Basic plugin example to display a notice inside WordPress admin

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages