-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add examples and update the documentation to the wp post term
#398
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -121,11 +121,12 @@ public function list_( $args, $assoc_args ) { | |||||
* : The name of the term's taxonomy. | ||||||
* | ||||||
* [<term>...] | ||||||
* : The name of the term or terms to be removed from the object. | ||||||
* : The slug of the term or terms (space-separated) to be removed from the object. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
"(space-separated)" isn't necessary here because it's the same behavior across all commands. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've added There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yes, and that it's standard behavior across all WP-CLI commands. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Got it. Removed. |
||||||
* | ||||||
* [--by=<field>] | ||||||
* : Explicitly handle the term value as a slug or id. | ||||||
* --- | ||||||
* default: slug | ||||||
* options: | ||||||
* - slug | ||||||
* - id | ||||||
|
@@ -211,11 +212,12 @@ public function remove( $args, $assoc_args ) { | |||||
* : The name of the taxonomy type to be added. | ||||||
* | ||||||
* <term>... | ||||||
* : The slug of the term or terms to be added. | ||||||
* : The slug of the term or terms (space-separated) to be added. | ||||||
* | ||||||
* [--by=<field>] | ||||||
* : Explicitly handle the term value as a slug or id. | ||||||
* --- | ||||||
* default: slug | ||||||
* options: | ||||||
* - slug | ||||||
* - id | ||||||
|
@@ -253,14 +255,15 @@ public function add( $args, $assoc_args ) { | |||||
* : The ID of the object. | ||||||
* | ||||||
* <taxonomy> | ||||||
* : The name of the taxonomy type to be updated. | ||||||
* : The slug of the taxonomy type to be updated. | ||||||
* | ||||||
* <term>... | ||||||
* : The slug of the term or terms to be updated. | ||||||
* : The slug of the term or terms (space-separated) to be updated. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
* | ||||||
* [--by=<field>] | ||||||
* : Explicitly handle the term value as a slug or id. | ||||||
* --- | ||||||
* default: slug | ||||||
* options: | ||||||
* - slug | ||||||
* - id | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we update this one too? Are there others in the file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so. By default, the slug is the taxonomy key but it can be different. I've updated the doc of the command
set
that was usingslug
instead ofname
to thetaxonomy
option.