Skip to content

Commit

Permalink
Regenerate README file - 2024-05-02
Browse files Browse the repository at this point in the history
  • Loading branch information
schlessera committed May 2, 2024
1 parent 0981288 commit b08dc5e
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,18 @@ wp plugin activate [<plugin>...] [--all] [--exclude=<name>] [--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
Expand Down Expand Up @@ -340,7 +352,7 @@ Returns exit code 0 when installed, 1 when uninstalled.
Gets a list of plugins.

~~~
wp plugin list [--<field>=<value>] [--field=<field>] [--fields=<fields>] [--format=<format>] [--status=<status>] [--skip-update-check]
wp plugin list [--<field>=<value>] [--field=<field>] [--fields=<fields>] [--format=<format>] [--status=<status>] [--skip-update-check] [--recently-active]
~~~

Displays a list of the plugins installed on the site with activation
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b08dc5e

Please sign in to comment.