Skip to content

Commit e6106fb

Browse files
committed
Add blueprint for development version
1 parent 8028613 commit e6106fb

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
3+
"landingPage": "/wp-admin/edit.php",
4+
"preferredVersions": {
5+
"php": "8.3",
6+
"wp": "latest"
7+
},
8+
"features": {
9+
"networking": true
10+
},
11+
"steps": [
12+
{
13+
"step": "login"
14+
},
15+
{
16+
"step": "installPlugin",
17+
"pluginData": {
18+
"resource": "git:directory",
19+
"url": "https://github.com/ocean90/public-post-preview.git",
20+
"ref": "HEAD",
21+
"path": "wp-content/plugins/public-post-preview"
22+
},
23+
"options": {
24+
"activate": true
25+
}
26+
},
27+
{
28+
"step": "runPHP",
29+
"code": "<?php require_once 'wordpress/wp-load.php'; wp_update_post( [ 'ID' => 1, 'post_status' => 'draft' ] ); ?>"
30+
},
31+
{
32+
"step": "setSiteOptions",
33+
"options": {
34+
"blogname": "Public Post Preview Demo",
35+
"public_post_preview": [
36+
1
37+
]
38+
}
39+
}
40+
]
41+
}

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ WordPress plugin to share a link to anonymous users to preview a draft of a post
44

55
Have you ever been writing a post with the help of someone who does not have access to your blog and needed to give them the ability to preview it before publishing? This plugin takes care of that by generating an URL with an expiring nonce that can be given out for public preview.
66

7-
[<kbd> <br> Preview in WordPress Playground <br> </kbd>](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/ocean90/public-post-preview/refs/heads/master/.wordpress-org/blueprints/blueprint.json)
7+
[<kbd> <br> Preview stable version in WordPress Playground <br> </kbd>](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/ocean90/public-post-preview/refs/heads/master/.wordpress-org/blueprints/blueprint.json)
8+
9+
[<kbd> <br> Preview development version in WordPress Playground <br> </kbd>](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/ocean90/public-post-preview/refs/heads/master/.wordpress-org/blueprints/blueprint-development.json)
810

911
<p align="center">
1012
<img src=".wordpress-org/screenshot-1.png" alt="" width="400">

0 commit comments

Comments
 (0)