From 07c3eb1e5ad4fe26fd66342944ba5bf0dea0c437 Mon Sep 17 00:00:00 2001 From: Birgit Pauli-Haack Date: Thu, 11 Apr 2024 13:40:55 +0200 Subject: [PATCH] Blueprint to write an admin notice (#8) A tiny blueprint to write a file, place it into the mu-plugins folder and say hello. _props for the example to @ironnysh_ --- blueprints/admin-notice/blueprint.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 blueprints/admin-notice/blueprint.json diff --git a/blueprints/admin-notice/blueprint.json b/blueprints/admin-notice/blueprint.json new file mode 100644 index 0000000..37c4a81 --- /dev/null +++ b/blueprints/admin-notice/blueprint.json @@ -0,0 +1,22 @@ +{ + "$schema": "https://playground.wordpress.net/blueprint-schema.json", + "meta": { + "title": "Display Admin Notice ", + "description": "Blueprint to add a tiny mu-plugin and display an admin notice", + "author": "bph", + "categories": ["Admin", "notices"] + }, + "landingPage": "/wp-admin/plugins.php", + "steps":[ + { + "step": "login", + "username": "admin", + "password": "password" + }, + { + "step": "writeFile", + "path": "/wordpress/wp-content/mu-plugins/bgnightly-notice.php", + "data": "

Hello from Playground.

'; });" + } + ] +} \ No newline at end of file