From b08dc5e1be422381c6ededaffc17d9cfbd36e230 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Thu, 2 May 2024 13:27:11 +0000 Subject: [PATCH] Regenerate README file - 2024-05-02 --- README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fd80103d..0f681fba 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,18 @@ wp plugin activate [...] [--all] [--exclude=] [--network] Plugin 'hello' network activated. Success: Network activated 1 of 1 plugins. + # Activate plugins that were recently active. + $ wp plugin activate $(wp plugin list --recently-active --field=name) + Plugin 'bbpress' activated. + Plugin 'buddypress' activated. + Success: Activated 2 of 2 plugins. + + # Activate plugins that were recently active on a multisite. + $ wp plugin activate $(wp plugin list --recently-active --field=name) --network + Plugin 'bbpress' network activated. + Plugin 'buddypress' network activated. + Success: Activated 2 of 2 plugins. + ### wp plugin deactivate @@ -340,7 +352,7 @@ Returns exit code 0 when installed, 1 when uninstalled. Gets a list of plugins. ~~~ -wp plugin list [--=] [--field=] [--fields=] [--format=] [--status=] [--skip-update-check] +wp plugin list [--=] [--field=] [--fields=] [--format=] [--status=] [--skip-update-check] [--recently-active] ~~~ 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`). [--skip-update-check] If set, the plugin update check will be skipped. + [--recently-active] + If set, only recently active plugins will be shown and the status filter will be ignored. + **AVAILABLE FIELDS** These fields will be displayed by default for each plugin: @@ -440,6 +455,10 @@ These fields are optionally available: | local | | | +--------------------+--------------+--------------------+ + # List recently active plugins on the site. + $ wp plugin list --recently-active --field=name --format=json + ["akismet","bbpress","buddypress"] + ### wp plugin path