diff --git a/README.md b/README.md index 102ae6dff..d5aec597b 100644 --- a/README.md +++ b/README.md @@ -131,11 +131,56 @@ wp comment count [] Creates a new comment. ~~~ -wp comment create [--=] [--porcelain] +wp comment create [--comment_agent=] [--comment_approved=] [--comment_author=] [--comment_author_email=] [--comment_author_IP=] [--comment_author_url=] [--comment_content=] [--comment_date=] [--comment_date_gmt=] [--comment_karma=] [--comment_parent=] [--comment_post_ID=] [--comment_type=] [--comment_meta=] [--user_id=] [--=] [--porcelain] ~~~ **OPTIONS** + [--comment_agent=] + The HTTP user agent of the comment author. + + [--comment_approved=] + Whether the comment has been approved. Default 1. + + [--comment_author=] + The name of the author of the comment. + + [--comment_author_email=] + The email address of the comment author. + + [--comment_author_IP=] + The IP address of the comment author. + + [--comment_author_url=] + The URL address of the comment author. + + [--comment_content=] + The content of the comment. + + [--comment_date=] + The date the comment was submitted. + + [--comment_date_gmt=] + The date the comment was submitted in the GMT timezone. + + [--comment_karma=] + The karma of the comment. Default 0. + + [--comment_parent=] + ID of this comment's parent, if any. Default 0. + + [--comment_post_ID=] + ID of the post that relates to the comment, if any. + + [--comment_type=] + Comment type. Default 'comment'. + + [--comment_meta=] + Array in JSON format of comment meta values keyed by their comment meta key. + + [--user_id=] + ID of the user who submitted the comment. Default 0. + [--=] Associative args for the new comment. See wp_insert_comment(). @@ -836,7 +881,7 @@ wp comment untrash ... Updates one or more comments. ~~~ -wp comment update ... --= +wp comment update ... [--comment_agent=] [--comment_approved=] [--comment_author=] [--comment_author_email=] [--comment_author_IP=] [--comment_author_url=] [--comment_content=] [--comment_date=] [--comment_date_gmt=] [--comment_karma=] [--comment_parent=] [--comment_post_ID=] [--comment_type=] [--comment_meta=] [--user_id=] --= ~~~ **OPTIONS** @@ -844,6 +889,52 @@ wp comment update ... --= ... One or more IDs of comments to update. + [--comment_agent=] + The HTTP user agent of the comment author. + + [--comment_approved=] + Whether the comment has been approved. + + [--comment_author=] + The name of the author of the comment. + + [--comment_author_email=] + The email address of the comment author. + + [--comment_author_IP=] + The IP address of the comment author. + + [--comment_author_url=] + The URL address of the comment author. + + [--comment_content=] + The content of the comment. + + [--comment_date=] + The date the comment was submitted. + + [--comment_date_gmt=] + The date the comment was submitted in the GMT timezone. Note that + wp_update_comment() always recalculates this from 'comment_date'. + + [--comment_karma=] + The karma of the comment. + + [--comment_parent=] + ID of this comment's parent, if any. + + [--comment_post_ID=] + ID of the post that relates to the comment, if any. + + [--comment_type=] + Comment type. + + [--comment_meta=] + Array in JSON format of comment meta values keyed by their comment meta key. + + [--user_id=] + ID of the user who submitted the comment. + --= One or more fields to update. See wp_update_comment(). @@ -2701,7 +2792,7 @@ wp post Creates a new post. ~~~ -wp post create [--post_author=] [--post_date=] [--post_date_gmt=] [--post_content=] [--post_content_filtered=] [--post_title=] [--post_excerpt=] [--post_status=] [--post_type=] [--comment_status=] [--ping_status=] [--post_password=] [--post_name=] [--from-post=] [--to_ping=] [--pinged=] [--post_modified=] [--post_modified_gmt=] [--post_parent=] [--menu_order=] [--post_mime_type=] [--guid=] [--post_category=] [--tags_input=] [--tax_input=] [--meta_input=] [] [--=] [--edit] [--porcelain] +wp post create [--post_author=] [--post_date=] [--post_date_gmt=] [--post_content=] [--post_content_filtered=] [--post_title=] [--post_excerpt=] [--post_status=] [--post_type=] [--comment_status=] [--ping_status=] [--post_password=] [--post_name=] [--from-post=] [--to_ping=] [--pinged=] [--post_modified=] [--post_modified_gmt=] [--post_parent=] [--menu_order=] [--post_mime_type=] [--guid=] [--post_category=] [--tags_input=] [--tax_input=] [--meta_input=] [--page_template=] [--import_id=] [] [--=] [--edit] [--porcelain] ~~~ **OPTIONS** @@ -2786,6 +2877,13 @@ wp post create [--post_author=] [--post_date=] [--post_d [--meta_input=] Array in JSON format of post meta values keyed by their post meta key. Default empty. + [--page_template=] + Page template to use. + + [--import_id=] + The post ID to be used when inserting a new post. If specified, must not + match any existing post ID. + [] Read post content from . If this value is present, the `--post_content` argument will be ignored. @@ -3758,7 +3856,7 @@ Replaces existing terms on the object. Updates one or more existing posts. ~~~ -wp post update ... [--post_author=] [--post_date=] [--post_date_gmt=] [--post_content=] [--post_content_filtered=] [--post_title=] [--post_excerpt=] [--post_status=] [--post_type=] [--comment_status=] [--ping_status=] [--post_password=] [--post_name=] [--to_ping=] [--pinged=] [--post_modified=] [--post_modified_gmt=] [--post_parent=] [--menu_order=] [--post_mime_type=] [--guid=] [--post_category=] [--tags_input=] [--tax_input=] [--meta_input=] [] --= [--defer-term-counting] +wp post update ... [--post_author=] [--post_date=] [--post_date_gmt=] [--post_content=] [--post_content_filtered=] [--post_title=] [--post_excerpt=] [--post_status=] [--post_type=] [--comment_status=] [--ping_status=] [--post_password=] [--post_name=] [--to_ping=] [--pinged=] [--post_modified=] [--post_modified_gmt=] [--post_parent=] [--menu_order=] [--post_mime_type=] [--guid=] [--post_category=] [--tags_input=] [--tax_input=] [--meta_input=] [--page_template=] [] --= [--defer-term-counting] ~~~ **OPTIONS** @@ -3843,6 +3941,9 @@ wp post update ... [--post_author=] [--post_date=] [ [--meta_input=] Array in JSON format of post meta values keyed by their post meta key. Default empty. + [--page_template=] + Page template to use. + [] Read post content from . If this value is present, the `--post_content` argument will be ignored. @@ -7494,7 +7595,7 @@ wp user application-password record-usage Updates an existing application password. ~~~ -wp user application-password update [--=] +wp user application-password update [--name=] ~~~ **OPTIONS** @@ -7505,8 +7606,8 @@ wp user application-password update [--=] The universally unique ID of the application password. - [--=] - Update the with a new . Currently supported fields: name. + [--name=] + The new name of the application password. **EXAMPLES** @@ -9229,7 +9330,7 @@ wp user unspam ... Updates an existing user. ~~~ -wp user update ... [--user_pass=] [--user_nicename=] [--user_url=] [--user_email=] [--display_name=] [--nickname=] [--first_name=] [--last_name=] [--description=] [--rich_editing=] [--user_registered=] [--role=] --= [--skip-email] +wp user update ... [--user_pass=] [--user_nicename=] [--user_url=] [--user_email=] [--display_name=] [--nickname=] [--first_name=] [--last_name=] [--description=] [--rich_editing=] [--syntax_highlighting=] [--comment_shortcuts=] [--admin_color=] [--use_ssl=] [--user_registered=] [--user_activation_key=] [--spam=] [--show_admin_bar_front=] [--role=] [--locale=] [--meta_input=] --= [--skip-email] ~~~ **OPTIONS** @@ -9267,12 +9368,42 @@ wp user update ... [--user_pass=] [--user_nicename=] [--rich_editing=] A string for whether to enable the rich editor or not. False if not empty. + [--syntax_highlighting=] + Whether to enable the rich code editor for the user. Accepts 'true' or + 'false' as a string literal, not boolean. + + [--comment_shortcuts=] + Whether to enable comment moderation keyboard shortcuts for the user. + Accepts 'true' or 'false' as a string literal, not boolean. + + [--admin_color=] + Admin color scheme for the user. + + [--use_ssl=] + Whether the user should always access the admin over https. + [--user_registered=] The date the user registered. + [--user_activation_key=] + Password reset key. + + [--spam=] + Multisite only. Whether the user is marked as spam. + + [--show_admin_bar_front=] + Whether to display the admin bar for the user on the site's front end. + Accepts 'true' or 'false' as a string literal, not boolean. + [--role=] A string used to set the user's role. + [--locale=] + The user's locale. + + [--meta_input=] + Array in JSON format of user meta values keyed by their user meta key. + --= One or more fields to update. For accepted fields, see wp_update_user().