Skip to content

Commit

Permalink
Fix doc for command with terms class (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
ernilambar authored Mar 12, 2024
1 parent f93114f commit 22d726d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
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

0 comments on commit 22d726d

Please sign in to comment.