Skip to content

Commit 6cd25be

Browse files
authored
Merge pull request #558 from wp-cli/regenerate-readme
2 parents e192435 + 5f4f1e2 commit 6cd25be

File tree

1 file changed

+44
-2
lines changed

1 file changed

+44
-2
lines changed

README.md

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,34 @@ wp comment
3838
Success: Trashed comment 264.
3939
Success: Trashed comment 262.
4040

41+
# Create a note for a block (WordPress 6.9+).
42+
$ wp comment create --comment_post_ID=15 --comment_content="This block needs revision" --comment_author="editor" --comment_type="note"
43+
Success: Created comment 945.
44+
45+
# List notes for a specific post (WordPress 6.9+).
46+
$ wp comment list --type=note --post_id=15
47+
+------------+---------------------+----------------------------------+
48+
| comment_ID | comment_date | comment_content |
49+
+------------+---------------------+----------------------------------+
50+
| 945 | 2024-11-10 14:30:00 | This block needs revision |
51+
+------------+---------------------+----------------------------------+
52+
53+
# Reply to a note (WordPress 6.9+).
54+
$ wp comment create --comment_post_ID=15 --comment_content="Updated per feedback" --comment_author="editor" --comment_type="note" --comment_parent=945
55+
Success: Created comment 946.
56+
57+
# Resolve a note by adding a comment with status meta (WordPress 6.9+).
58+
$ wp comment create --comment_post_ID=15 --comment_content="Resolving" --comment_author="editor" --comment_type="note" --comment_parent=945 --porcelain
59+
947
60+
$ wp comment meta add 947 _wp_note_status resolved
61+
Success: Added custom field.
62+
63+
# Reopen a resolved note (WordPress 6.9+).
64+
$ wp comment create --comment_post_ID=15 --comment_content="Reopening for further review" --comment_author="editor" --comment_type="note" --comment_parent=945 --porcelain
65+
948
66+
$ wp comment meta add 948 _wp_note_status reopen
67+
Success: Added custom field.
68+
4169

4270

4371
### wp comment approve
@@ -120,6 +148,10 @@ wp comment create [--<field>=<value>] [--porcelain]
120148
$ wp comment create --comment_post_ID=15 --comment_content="hello blog" --comment_author="wp-cli"
121149
Success: Created comment 932.
122150

151+
# Create a note (WordPress 6.9+).
152+
$ wp comment create --comment_post_ID=15 --comment_content="This block needs revision" --comment_author="editor" --comment_type="note"
153+
Success: Created comment 933.
 *
154+
123155

124156

125157
### wp comment delete
@@ -367,6 +399,15 @@ These fields are optionally available:
367399
| 3 | 2023-11-10 11:22:31 | John Doe |
368400
+------------+---------------------+----------------+
369401

402+
# List notes for a specific post (WordPress 6.9+).
403+
$ wp comment list --type=note --post_id=15 --fields=ID,comment_date,comment_content
404+
+------------+---------------------+----------------------------------+
405+
| comment_ID | comment_date | comment_content |
406+
+------------+---------------------+----------------------------------+
407+
| 10 | 2024-11-10 14:30:00 | This block needs revision |
408+
| 11 | 2024-11-10 15:45:00 | Updated per feedback |
409+
+------------+---------------------+----------------------------------+
410+
370411

371412

372413
### wp comment meta
@@ -5275,7 +5316,7 @@ Manages taxonomy terms and term meta, with create, delete, and list commands.
52755316
wp term
52765317
~~~
52775318

5278-
See reference for [taxonomies and their terms](https://codex.wordpress.org/Taxonomies).
5319+
See reference for [taxonomies and their terms](https://wordpress.org/documentation/article/taxonomies).
52795320

52805321
**EXAMPLES**
52815322

@@ -5934,7 +5975,8 @@ Manages users, along with their roles, capabilities, and meta.
59345975
wp user
59355976
~~~
59365977

5937-
See references for [Roles and Capabilities](https://codex.wordpress.org/Roles_and_Capabilities) and [WP User class](https://codex.wordpress.org/Class_Reference/WP_User).
5978+
See references for [Roles and Capabilities](https://wordpress.org/documentation/article/roles-and-capabilities)
5979+
and [WP User class](https://developer.wordpress.org/reference/classes/wp_user).
59385980

59395981
**EXAMPLES**
59405982

0 commit comments

Comments
 (0)