Skip to content

Commit 1cfaf94

Browse files
authored
Merge pull request #403 from ernilambar/fix-plugin-command-examples
2 parents 9d736a2 + 62fddcd commit 1cfaf94

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/Plugin_Command.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,6 +1250,7 @@ public function delete( $args, $assoc_args = array() ) {
12501250
* * update
12511251
* * version
12521252
* * update_version
1253+
* * auto_update
12531254
*
12541255
* These fields are optionally available:
12551256
*
@@ -1258,7 +1259,6 @@ public function delete( $args, $assoc_args = array() ) {
12581259
* * title
12591260
* * description
12601261
* * file
1261-
* * auto_update
12621262
* * author
12631263
* * wporg_status
12641264
* * wporg_last_updated
@@ -1267,25 +1267,25 @@ public function delete( $args, $assoc_args = array() ) {
12671267
*
12681268
* # List active plugins on the site.
12691269
* $ wp plugin list --status=active --format=json
1270-
* [{"name":"dynamic-hostname","status":"active","update":"none","version":"0.4.2","update_version": ""},{"name":"tinymce-templates","status":"active","update":"none","version":"4.4.3","update_version": ""},{"name":"wp-multibyte-patch","status":"active","update":"none","version":"2.4","update_version": ""},{"name":"wp-total-hacks","status":"active","update":"none","version":"2.0.1","update_version": ""}]
1270+
* [{"name":"dynamic-hostname","status":"active","update":"none","version":"0.4.2","update_version":"","auto_update":"off"},{"name":"tinymce-templates","status":"active","update":"none","version":"4.8.1","update_version":"","auto_update":"off"},{"name":"wp-multibyte-patch","status":"active","update":"none","version":"2.9","update_version":"","auto_update":"off"},{"name":"wp-total-hacks","status":"active","update":"none","version":"4.7.2","update_version":"","auto_update":"off"}]
12711271
*
12721272
* # List plugins on each site in a network.
12731273
* $ wp site list --field=url | xargs -I % wp plugin list --url=%
1274-
* +---------+----------------+--------+---------+----------------+
1275-
* | name | status | update | version | update_version |
1276-
* +---------+----------------+--------+---------+----------------+
1277-
* | akismet | active-network | none | 3.1.11 | |
1278-
* | hello | inactive | none | 1.6 | 1.7.2 |
1279-
* +---------+----------------+--------+---------+----------------+
1280-
* +---------+----------------+--------+---------+----------------+
1281-
* | name | status | update | version | update_version |
1282-
* +---------+----------------+--------+---------+----------------+
1283-
* | akismet | active-network | none | 3.1.11 | |
1284-
* | hello | inactive | none | 1.6 | 1.7.2 |
1285-
* +---------+----------------+--------+---------+----------------+
1274+
* +---------+----------------+-----------+---------+-----------------+------------+
1275+
* | name | status | update | version | update_version | auto_update |
1276+
* +---------+----------------+-----------+---------+----------------+-------------+
1277+
* | akismet | active-network | none | 5.3.1 | | on |
1278+
* | hello | inactive | available | 1.6 | 1.7.2 | off |
1279+
* +---------+----------------+-----------+---------+----------------+-------------+
1280+
* +---------+----------------+-----------+---------+----------------+-------------+
1281+
* | name | status | update | version | update_version | auto_update |
1282+
* +---------+----------------+-----------+---------+----------------+-------------+
1283+
* | akismet | active-network | none | 5.3.1 | | on |
1284+
* | hello | inactive | available | 1.6 | 1.7.2 | off |
1285+
* +---------+----------------+-----------+---------+----------------+-------------+
12861286
*
12871287
* # Check whether plugins are still active on WordPress.org
1288-
* $ wp plugin list --format=csv --fields=name,wporg_status,wporg_last_updated
1288+
* $ wp plugin list --fields=name,wporg_status,wporg_last_updated
12891289
* +--------------------+--------------+--------------------+
12901290
* | name | wporg_status | wporg_last_updated |
12911291
* +--------------------+--------------+--------------------+

0 commit comments

Comments
 (0)