We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ad1c634 + 3695524 commit 1e7f946Copy full SHA for 1e7f946
features/post-term.feature
@@ -50,6 +50,12 @@ Feature: Manage post term
50
1
51
"""
52
53
+ When I run `wp post term list 1 category --field=slug`
54
+ Then STDOUT should be:
55
+ """
56
+ new
57
58
+
59
When I run `wp post term remove 1 category new`
60
Then STDOUT should be:
61
src/WP_CLI/CommandWithTerms.php
@@ -41,6 +41,9 @@ abstract class CommandWithTerms extends \WP_CLI_Command {
41
* <taxonomy>...
42
* : One or more taxonomies to list.
43
*
44
+ * [--field=<field>]
45
+ * : Prints the value of a single field for each term.
46
+ *
47
* [--fields=<fields>]
48
* : Limit the output to specific row fields.
49
0 commit comments