Skip to content

Commit 6e09dcb

Browse files
committed
Add examples related to recently active
1 parent c1b7322 commit 6e09dcb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/Plugin_Command.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,18 @@ protected function get_all_items() {
329329
* $ wp plugin activate hello --network
330330
* Plugin 'hello' network activated.
331331
* Success: Network activated 1 of 1 plugins.
332+
*
333+
* # Activate plugins that were recently active.
334+
* $ wp plugin activate $(wp plugin list --recently-active --field=name)
335+
* Plugin 'bbpress' activated.
336+
* Plugin 'buddypress' activated.
337+
* Success: Activated 2 of 2 plugins.
338+
*
339+
* # Activate plugins that were recently active on a multisite.
340+
* $ wp plugin activate $(wp plugin list --recently-active --field=name) --network
341+
* Plugin 'bbpress' network activated.
342+
* Plugin 'buddypress' network activated.
343+
* Success: Activated 2 of 2 plugins.
332344
*/
333345
public function activate( $args, $assoc_args = array() ) {
334346
$network_wide = Utils\get_flag_value( $assoc_args, 'network', false );
@@ -1371,6 +1383,10 @@ public function delete( $args, $assoc_args = array() ) {
13711383
* | local | | |
13721384
* +--------------------+--------------+--------------------+
13731385
*
1386+
* # List recently active plugins on the site.
1387+
* $ wp plugin list --recently-active --field=name --format=json
1388+
* ["akismet","bbpress","buddypress"]
1389+
*
13741390
* @subcommand list
13751391
*/
13761392
public function list_( $_, $assoc_args ) {

0 commit comments

Comments
 (0)