Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2893,6 +2893,8 @@ wp post term add <id> <taxonomy> <term>... [--by=<field>]

Append the term to the existing set of terms on the object.

**OPTIONS**

<id>
The ID of the object.

Expand Down Expand Up @@ -2921,6 +2923,8 @@ List all terms associated with an object.
wp post term list <id> <taxonomy>... [--field=<field>] [--fields=<fields>] [--format=<format>]
~~~

**OPTIONS**

<id>
ID for the object.

Expand Down Expand Up @@ -3008,6 +3012,8 @@ wp post term set <id> <taxonomy> <term>... [--by=<field>]

Replaces existing terms on the object.

**OPTIONS**

<id>
The ID of the object.

Expand Down Expand Up @@ -6326,6 +6332,8 @@ wp user term add <id> <taxonomy> <term>... [--by=<field>]

Append the term to the existing set of terms on the object.

**OPTIONS**

<id>
The ID of the object.

Expand Down Expand Up @@ -6354,6 +6362,8 @@ List all terms associated with an object.
wp user term list <id> <taxonomy>... [--field=<field>] [--fields=<fields>] [--format=<format>]
~~~

**OPTIONS**

<id>
ID for the object.

Expand Down Expand Up @@ -6441,6 +6451,8 @@ wp user term set <id> <taxonomy> <term>... [--by=<field>]

Replaces existing terms on the object.

**OPTIONS**

<id>
The ID of the object.

Expand Down
6 changes: 6 additions & 0 deletions src/WP_CLI/CommandWithTerms.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ abstract class CommandWithTerms extends WP_CLI_Command {
/**
* List all terms associated with an object.
*
* ## OPTIONS
*
* <id>
* : ID for the object.
*
Expand Down Expand Up @@ -204,6 +206,8 @@ public function remove( $args, $assoc_args ) {
*
* Append the term to the existing set of terms on the object.
*
* ## OPTIONS
*
* <id>
* : The ID of the object.
*
Expand Down Expand Up @@ -250,6 +254,8 @@ public function add( $args, $assoc_args ) {
*
* Replaces existing terms on the object.
*
* ## OPTIONS
*
* <id>
* : The ID of the object.
*
Expand Down