Skip to content

Commit

Permalink
Regenerate README file - 2023-05-08 (wp-cli#402)
Browse files Browse the repository at this point in the history
Co-authored-by: Alain Schlesser <[email protected]>
  • Loading branch information
github-actions[bot] and schlessera authored May 8, 2023
1 parent 99ff533 commit 0f48da5
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2793,10 +2793,27 @@ wp post term

**EXAMPLES**

# Set post terms
# Set category post term `test` to the post ID 123
$ wp post term set 123 test category
Success: Set term.

# Set category post terms `test` and `apple` to the post ID 123
$ wp post term set 123 test apple category
Success: Set terms.

# List category post terms for the post ID 123
$ wp post term list 123 category --fields=term_id,slug
+---------+-------+
| term_id | slug |
+---------+-------+
| 2 | apple |
| 3 | test |
+----------+------+

# Remove category post terms `test` and `apple` for the post ID 123
$ wp post term remove 123 category test apple
Success: Removed terms.




Expand All @@ -2823,6 +2840,7 @@ Append the term to the existing set of terms on the object.
[--by=<field>]
Explicitly handle the term value as a slug or id.
---
default: slug
options:
- slug
- id
Expand Down Expand Up @@ -2899,11 +2917,12 @@ wp post term remove <id> <taxonomy> [<term>...] [--by=<field>] [--all]
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 to be removed from the object.

[--by=<field>]
Explicitly handle the term value as a slug or id.
---
default: slug
options:
- slug
- id
Expand Down Expand Up @@ -2936,6 +2955,7 @@ Replaces existing terms on the object.
[--by=<field>]
Explicitly handle the term value as a slug or id.
---
default: slug
options:
- slug
- id
Expand Down Expand Up @@ -5506,6 +5526,7 @@ Append the term to the existing set of terms on the object.
[--by=<field>]
Explicitly handle the term value as a slug or id.
---
default: slug
options:
- slug
- id
Expand Down Expand Up @@ -5582,11 +5603,12 @@ wp user term remove <id> <taxonomy> [<term>...] [--by=<field>] [--all]
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 to be removed from the object.

[--by=<field>]
Explicitly handle the term value as a slug or id.
---
default: slug
options:
- slug
- id
Expand Down Expand Up @@ -5619,6 +5641,7 @@ Replaces existing terms on the object.
[--by=<field>]
Explicitly handle the term value as a slug or id.
---
default: slug
options:
- slug
- id
Expand Down

0 comments on commit 0f48da5

Please sign in to comment.