Skip to content

Commit 22d726d

Browse files
authored
Fix doc for command with terms class (#487)
1 parent f93114f commit 22d726d

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2893,6 +2893,8 @@ wp post term add <id> <taxonomy> <term>... [--by=<field>]
28932893

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

2896+
**OPTIONS**
2897+
28962898
<id>
28972899
The ID of the object.
28982900

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

2926+
**OPTIONS**
2927+
29242928
<id>
29252929
ID for the object.
29262930

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

30093013
Replaces existing terms on the object.
30103014

3015+
**OPTIONS**
3016+
30113017
<id>
30123018
The ID of the object.
30133019

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

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

6335+
**OPTIONS**
6336+
63296337
<id>
63306338
The ID of the object.
63316339

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

6365+
**OPTIONS**
6366+
63576367
<id>
63586368
ID for the object.
63596369

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

64426452
Replaces existing terms on the object.
64436453

6454+
**OPTIONS**
6455+
64446456
<id>
64456457
The ID of the object.
64466458

src/WP_CLI/CommandWithTerms.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ abstract class CommandWithTerms extends WP_CLI_Command {
3636
/**
3737
* List all terms associated with an object.
3838
*
39+
* ## OPTIONS
40+
*
3941
* <id>
4042
* : ID for the object.
4143
*
@@ -204,6 +206,8 @@ public function remove( $args, $assoc_args ) {
204206
*
205207
* Append the term to the existing set of terms on the object.
206208
*
209+
* ## OPTIONS
210+
*
207211
* <id>
208212
* : The ID of the object.
209213
*
@@ -250,6 +254,8 @@ public function add( $args, $assoc_args ) {
250254
*
251255
* Replaces existing terms on the object.
252256
*
257+
* ## OPTIONS
258+
*
253259
* <id>
254260
* : The ID of the object.
255261
*

0 commit comments

Comments
 (0)