Skip to content

Commit 7ece00f

Browse files
authored
Update CPT blueprints (books) (#122)
- Fixes #91 - replaced raw.githubcontent.com for file content - use login shorthand
1 parent 56e569e commit 7ece00f

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

blueprints/custom-post/blueprint.json

+14-5
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@
66
"author": "bph",
77
"categories": ["Content", "CPT"]
88
},
9-
"landingPage": "/wp-admin/",
9+
"landingPage": "/wp-admin/edit.php?post_type=gbtbooks",
10+
"login":true,
1011
"steps": [
11-
{
12-
"step": "login"
13-
},
12+
1413
{
1514
"step": "mkdir",
1615
"path": "/wordpress/wp-content/plugins/books"
@@ -20,12 +19,22 @@
2019
"path": "/wordpress/wp-content/plugins/books/books.php",
2120
"data": {
2221
"resource": "url",
23-
"url": "https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/custom-post/books.php"
22+
"url": "https://github.com/WordPress/blueprints/blob/trunk/blueprints/custom-post/books.php"
2423
}
2524
},
2625
{
2726
"step": "activatePlugin",
2827
"pluginPath": "books/books.php"
28+
},
29+
{ "step": "wp-cli",
30+
"command":"wp post create --post_type=gbtbooks --post_title='WordPress Styling with Blocks, Patterns, Templates, and Themes' --post_content='<!-- wp:paragraph --><p>Explore WordPress styling with step-by-step guidance, practical examples, and tips by Tammie Lister</p><!-- /wp:paragraph -->' --post_status=publish"
31+
},
32+
{
33+
"step": "updateUserMeta",
34+
"meta": {
35+
"admin_color": "modern"
36+
},
37+
"userId": 1
2938
}
3039
]
3140
}

0 commit comments

Comments
 (0)