@@ -86,6 +86,18 @@ wp plugin activate [<plugin>...] [--all] [--exclude=<name>] [--network]
86
86
Plugin 'hello' network activated.
87
87
Success: Network activated 1 of 1 plugins.
88
88
89
+ # Activate plugins that were recently active.
90
+ $ wp plugin activate $(wp plugin list --recently-active --field=name)
91
+ Plugin 'bbpress' activated.
92
+ Plugin 'buddypress' activated.
93
+ Success: Activated 2 of 2 plugins.
94
+
95
+ # Activate plugins that were recently active on a multisite.
96
+ $ wp plugin activate $(wp plugin list --recently-active --field=name) --network
97
+ Plugin 'bbpress' network activated.
98
+ Plugin 'buddypress' network activated.
99
+ Success: Activated 2 of 2 plugins.
100
+
89
101
90
102
91
103
### wp plugin deactivate
@@ -340,7 +352,7 @@ Returns exit code 0 when installed, 1 when uninstalled.
340
352
Gets a list of plugins.
341
353
342
354
~~~
343
- wp plugin list [--<field>=<value>] [--field=<field>] [--fields=<fields>] [--format=<format>] [--status=<status>] [--skip-update-check]
355
+ wp plugin list [--<field>=<value>] [--field=<field>] [--fields=<fields>] [--format=<format>] [--status=<status>] [--skip-update-check] [--recently-active]
344
356
~~~
345
357
346
358
Displays a list of the plugins installed on the site with activation
@@ -385,6 +397,9 @@ Use `--status=dropin` to list installed dropins (e.g. `object-cache.php`).
385
397
[--skip-update-check]
386
398
If set, the plugin update check will be skipped.
387
399
400
+ [--recently-active]
401
+ If set, only recently active plugins will be shown and the status filter will be ignored.
402
+
388
403
** AVAILABLE FIELDS**
389
404
390
405
These fields will be displayed by default for each plugin:
@@ -440,6 +455,10 @@ These fields are optionally available:
440
455
| local | | |
441
456
+--------------------+--------------+--------------------+
442
457
458
+ # List recently active plugins on the site.
459
+ $ wp plugin list --recently-active --field=name --format=json
460
+ ["akismet","bbpress","buddypress"]
461
+
443
462
444
463
445
464
### wp plugin path
0 commit comments