Skip to content

Commit f7da2b5

Browse files
Regenerate README file (#641)
1 parent e5ac2a3 commit f7da2b5

1 file changed

Lines changed: 139 additions & 8 deletions

File tree

‎README.md‎

Lines changed: 139 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,56 @@ wp comment count [<post-id>]
131131
Creates a new comment.
132132

133133
~~~
134-
wp comment create [--<field>=<value>] [--porcelain]
134+
wp comment create [--comment_agent=<comment_agent>] [--comment_approved=<comment_approved>] [--comment_author=<comment_author>] [--comment_author_email=<comment_author_email>] [--comment_author_IP=<comment_author_IP>] [--comment_author_url=<comment_author_url>] [--comment_content=<comment_content>] [--comment_date=<yyyy-mm-dd-hh-ii-ss>] [--comment_date_gmt=<yyyy-mm-dd-hh-ii-ss>] [--comment_karma=<comment_karma>] [--comment_parent=<comment_parent>] [--comment_post_ID=<comment_post_ID>] [--comment_type=<comment_type>] [--comment_meta=<comment_meta>] [--user_id=<user_id>] [--<field>=<value>] [--porcelain]
135135
~~~
136136

137137
**OPTIONS**
138138

139+
[--comment_agent=<comment_agent>]
140+
The HTTP user agent of the comment author.
141+
142+
[--comment_approved=<comment_approved>]
143+
Whether the comment has been approved. Default 1.
144+
145+
[--comment_author=<comment_author>]
146+
The name of the author of the comment.
147+
148+
[--comment_author_email=<comment_author_email>]
149+
The email address of the comment author.
150+
151+
[--comment_author_IP=<comment_author_IP>]
152+
The IP address of the comment author.
153+
154+
[--comment_author_url=<comment_author_url>]
155+
The URL address of the comment author.
156+
157+
[--comment_content=<comment_content>]
158+
The content of the comment.
159+
160+
[--comment_date=<yyyy-mm-dd-hh-ii-ss>]
161+
The date the comment was submitted.
162+
163+
[--comment_date_gmt=<yyyy-mm-dd-hh-ii-ss>]
164+
The date the comment was submitted in the GMT timezone.
165+
166+
[--comment_karma=<comment_karma>]
167+
The karma of the comment. Default 0.
168+
169+
[--comment_parent=<comment_parent>]
170+
ID of this comment's parent, if any. Default 0.
171+
172+
[--comment_post_ID=<comment_post_ID>]
173+
ID of the post that relates to the comment, if any.
174+
175+
[--comment_type=<comment_type>]
176+
Comment type. Default 'comment'.
177+
178+
[--comment_meta=<comment_meta>]
179+
Array in JSON format of comment meta values keyed by their comment meta key.
180+
181+
[--user_id=<user_id>]
182+
ID of the user who submitted the comment. Default 0.
183+
139184
[--<field>=<value>]
140185
Associative args for the new comment. See wp_insert_comment().
141186

@@ -836,14 +881,60 @@ wp comment untrash <id>...
836881
Updates one or more comments.
837882

838883
~~~
839-
wp comment update <id>... --<field>=<value>
884+
wp comment update <id>... [--comment_agent=<comment_agent>] [--comment_approved=<comment_approved>] [--comment_author=<comment_author>] [--comment_author_email=<comment_author_email>] [--comment_author_IP=<comment_author_IP>] [--comment_author_url=<comment_author_url>] [--comment_content=<comment_content>] [--comment_date=<yyyy-mm-dd-hh-ii-ss>] [--comment_date_gmt=<yyyy-mm-dd-hh-ii-ss>] [--comment_karma=<comment_karma>] [--comment_parent=<comment_parent>] [--comment_post_ID=<comment_post_ID>] [--comment_type=<comment_type>] [--comment_meta=<comment_meta>] [--user_id=<user_id>] --<field>=<value>
840885
~~~
841886

842887
**OPTIONS**
843888

844889
<id>...
845890
One or more IDs of comments to update.
846891

892+
[--comment_agent=<comment_agent>]
893+
The HTTP user agent of the comment author.
894+
895+
[--comment_approved=<comment_approved>]
896+
Whether the comment has been approved.
897+
898+
[--comment_author=<comment_author>]
899+
The name of the author of the comment.
900+
901+
[--comment_author_email=<comment_author_email>]
902+
The email address of the comment author.
903+
904+
[--comment_author_IP=<comment_author_IP>]
905+
The IP address of the comment author.
906+
907+
[--comment_author_url=<comment_author_url>]
908+
The URL address of the comment author.
909+
910+
[--comment_content=<comment_content>]
911+
The content of the comment.
912+
913+
[--comment_date=<yyyy-mm-dd-hh-ii-ss>]
914+
The date the comment was submitted.
915+
916+
[--comment_date_gmt=<yyyy-mm-dd-hh-ii-ss>]
917+
The date the comment was submitted in the GMT timezone. Note that
918+
wp_update_comment() always recalculates this from 'comment_date'.
919+
920+
[--comment_karma=<comment_karma>]
921+
The karma of the comment.
922+
923+
[--comment_parent=<comment_parent>]
924+
ID of this comment's parent, if any.
925+
926+
[--comment_post_ID=<comment_post_ID>]
927+
ID of the post that relates to the comment, if any.
928+
929+
[--comment_type=<comment_type>]
930+
Comment type.
931+
932+
[--comment_meta=<comment_meta>]
933+
Array in JSON format of comment meta values keyed by their comment meta key.
934+
935+
[--user_id=<user_id>]
936+
ID of the user who submitted the comment.
937+
847938
--<field>=<value>
848939
One or more fields to update. See wp_update_comment().
849940

@@ -2701,7 +2792,7 @@ wp post
27012792
Creates a new post.
27022793

27032794
~~~
2704-
wp post create [--post_author=<post_author>] [--post_date=<post_date>] [--post_date_gmt=<post_date_gmt>] [--post_content=<post_content>] [--post_content_filtered=<post_content_filtered>] [--post_title=<post_title>] [--post_excerpt=<post_excerpt>] [--post_status=<post_status>] [--post_type=<post_type>] [--comment_status=<comment_status>] [--ping_status=<ping_status>] [--post_password=<post_password>] [--post_name=<post_name>] [--from-post=<post_id>] [--to_ping=<to_ping>] [--pinged=<pinged>] [--post_modified=<post_modified>] [--post_modified_gmt=<post_modified_gmt>] [--post_parent=<post_parent>] [--menu_order=<menu_order>] [--post_mime_type=<post_mime_type>] [--guid=<guid>] [--post_category=<post_category>] [--tags_input=<tags_input>] [--tax_input=<tax_input>] [--meta_input=<meta_input>] [<file>] [--<field>=<value>] [--edit] [--porcelain]
2795+
wp post create [--post_author=<post_author>] [--post_date=<post_date>] [--post_date_gmt=<post_date_gmt>] [--post_content=<post_content>] [--post_content_filtered=<post_content_filtered>] [--post_title=<post_title>] [--post_excerpt=<post_excerpt>] [--post_status=<post_status>] [--post_type=<post_type>] [--comment_status=<comment_status>] [--ping_status=<ping_status>] [--post_password=<post_password>] [--post_name=<post_name>] [--from-post=<post_id>] [--to_ping=<to_ping>] [--pinged=<pinged>] [--post_modified=<post_modified>] [--post_modified_gmt=<post_modified_gmt>] [--post_parent=<post_parent>] [--menu_order=<menu_order>] [--post_mime_type=<post_mime_type>] [--guid=<guid>] [--post_category=<post_category>] [--tags_input=<tags_input>] [--tax_input=<tax_input>] [--meta_input=<meta_input>] [--page_template=<page_template>] [--import_id=<import_id>] [<file>] [--<field>=<value>] [--edit] [--porcelain]
27052796
~~~
27062797

27072798
**OPTIONS**
@@ -2786,6 +2877,13 @@ wp post create [--post_author=<post_author>] [--post_date=<post_date>] [--post_d
27862877
[--meta_input=<meta_input>]
27872878
Array in JSON format of post meta values keyed by their post meta key. Default empty.
27882879

2880+
[--page_template=<page_template>]
2881+
Page template to use.
2882+
2883+
[--import_id=<import_id>]
2884+
The post ID to be used when inserting a new post. If specified, must not
2885+
match any existing post ID.
2886+
27892887
[<file>]
27902888
Read post content from <file>. If this value is present, the
27912889
`--post_content` argument will be ignored.
@@ -3758,7 +3856,7 @@ Replaces existing terms on the object.
37583856
Updates one or more existing posts.
37593857

37603858
~~~
3761-
wp post update <id>... [--post_author=<post_author>] [--post_date=<post_date>] [--post_date_gmt=<post_date_gmt>] [--post_content=<post_content>] [--post_content_filtered=<post_content_filtered>] [--post_title=<post_title>] [--post_excerpt=<post_excerpt>] [--post_status=<post_status>] [--post_type=<post_type>] [--comment_status=<comment_status>] [--ping_status=<ping_status>] [--post_password=<post_password>] [--post_name=<post_name>] [--to_ping=<to_ping>] [--pinged=<pinged>] [--post_modified=<post_modified>] [--post_modified_gmt=<post_modified_gmt>] [--post_parent=<post_parent>] [--menu_order=<menu_order>] [--post_mime_type=<post_mime_type>] [--guid=<guid>] [--post_category=<post_category>] [--tags_input=<tags_input>] [--tax_input=<tax_input>] [--meta_input=<meta_input>] [<file>] --<field>=<value> [--defer-term-counting]
3859+
wp post update <id>... [--post_author=<post_author>] [--post_date=<post_date>] [--post_date_gmt=<post_date_gmt>] [--post_content=<post_content>] [--post_content_filtered=<post_content_filtered>] [--post_title=<post_title>] [--post_excerpt=<post_excerpt>] [--post_status=<post_status>] [--post_type=<post_type>] [--comment_status=<comment_status>] [--ping_status=<ping_status>] [--post_password=<post_password>] [--post_name=<post_name>] [--to_ping=<to_ping>] [--pinged=<pinged>] [--post_modified=<post_modified>] [--post_modified_gmt=<post_modified_gmt>] [--post_parent=<post_parent>] [--menu_order=<menu_order>] [--post_mime_type=<post_mime_type>] [--guid=<guid>] [--post_category=<post_category>] [--tags_input=<tags_input>] [--tax_input=<tax_input>] [--meta_input=<meta_input>] [--page_template=<page_template>] [<file>] --<field>=<value> [--defer-term-counting]
37623860
~~~
37633861

37643862
**OPTIONS**
@@ -3843,6 +3941,9 @@ wp post update <id>... [--post_author=<post_author>] [--post_date=<post_date>] [
38433941
[--meta_input=<meta_input>]
38443942
Array in JSON format of post meta values keyed by their post meta key. Default empty.
38453943

3944+
[--page_template=<page_template>]
3945+
Page template to use.
3946+
38463947
[<file>]
38473948
Read post content from <file>. If this value is present, the
38483949
`--post_content` argument will be ignored.
@@ -7494,7 +7595,7 @@ wp user application-password record-usage <user> <uuid>
74947595
Updates an existing application password.
74957596

74967597
~~~
7497-
wp user application-password update <user> <uuid> [--<field>=<value>]
7598+
wp user application-password update <user> <uuid> [--name=<name>]
74987599
~~~
74997600

75007601
**OPTIONS**
@@ -7505,8 +7606,8 @@ wp user application-password update <user> <uuid> [--<field>=<value>]
75057606
<uuid>
75067607
The universally unique ID of the application password.
75077608

7508-
[--<field>=<value>]
7509-
Update the <field> with a new <value>. Currently supported fields: name.
7609+
[--name=<name>]
7610+
The new name of the application password.
75107611

75117612
**EXAMPLES**
75127613

@@ -9229,7 +9330,7 @@ wp user unspam <user>...
92299330
Updates an existing user.
92309331

92319332
~~~
9232-
wp user update <user>... [--user_pass=<password>] [--user_nicename=<nice_name>] [--user_url=<url>] [--user_email=<email>] [--display_name=<display_name>] [--nickname=<nickname>] [--first_name=<first_name>] [--last_name=<last_name>] [--description=<description>] [--rich_editing=<rich_editing>] [--user_registered=<yyyy-mm-dd-hh-ii-ss>] [--role=<role>] --<field>=<value> [--skip-email]
9333+
wp user update <user>... [--user_pass=<password>] [--user_nicename=<nice_name>] [--user_url=<url>] [--user_email=<email>] [--display_name=<display_name>] [--nickname=<nickname>] [--first_name=<first_name>] [--last_name=<last_name>] [--description=<description>] [--rich_editing=<rich_editing>] [--syntax_highlighting=<syntax_highlighting>] [--comment_shortcuts=<comment_shortcuts>] [--admin_color=<admin_color>] [--use_ssl=<use_ssl>] [--user_registered=<yyyy-mm-dd-hh-ii-ss>] [--user_activation_key=<user_activation_key>] [--spam=<spam>] [--show_admin_bar_front=<show_admin_bar_front>] [--role=<role>] [--locale=<locale>] [--meta_input=<meta_input>] --<field>=<value> [--skip-email]
92339334
~~~
92349335

92359336
**OPTIONS**
@@ -9267,12 +9368,42 @@ wp user update <user>... [--user_pass=<password>] [--user_nicename=<nice_name>]
92679368
[--rich_editing=<rich_editing>]
92689369
A string for whether to enable the rich editor or not. False if not empty.
92699370

9371+
[--syntax_highlighting=<syntax_highlighting>]
9372+
Whether to enable the rich code editor for the user. Accepts 'true' or
9373+
'false' as a string literal, not boolean.
9374+
9375+
[--comment_shortcuts=<comment_shortcuts>]
9376+
Whether to enable comment moderation keyboard shortcuts for the user.
9377+
Accepts 'true' or 'false' as a string literal, not boolean.
9378+
9379+
[--admin_color=<admin_color>]
9380+
Admin color scheme for the user.
9381+
9382+
[--use_ssl=<use_ssl>]
9383+
Whether the user should always access the admin over https.
9384+
92709385
[--user_registered=<yyyy-mm-dd-hh-ii-ss>]
92719386
The date the user registered.
92729387

9388+
[--user_activation_key=<user_activation_key>]
9389+
Password reset key.
9390+
9391+
[--spam=<spam>]
9392+
Multisite only. Whether the user is marked as spam.
9393+
9394+
[--show_admin_bar_front=<show_admin_bar_front>]
9395+
Whether to display the admin bar for the user on the site's front end.
9396+
Accepts 'true' or 'false' as a string literal, not boolean.
9397+
92739398
[--role=<role>]
92749399
A string used to set the user's role.
92759400

9401+
[--locale=<locale>]
9402+
The user's locale.
9403+
9404+
[--meta_input=<meta_input>]
9405+
Array in JSON format of user meta values keyed by their user meta key.
9406+
92769407
--<field>=<value>
92779408
One or more fields to update. For accepted fields, see wp_update_user().
92789409

0 commit comments

Comments
 (0)