Skip to content

Commit 16dd1b4

Browse files
committed
Regenerate README file - 2026-02-17
1 parent 2d7e1f3 commit 16dd1b4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ See the WordPress [Plugin Handbook](https://developer.wordpress.org/plugins/) de
5757
Activates one or more plugins.
5858

5959
~~~
60-
wp plugin activate [<plugin>...] [--all] [--exclude=<name>] [--network]
60+
wp plugin activate [<plugin>...] [--all] [--exclude=<name>] [--network] [--force]
6161
~~~
6262

6363
**OPTIONS**
@@ -74,6 +74,9 @@ wp plugin activate [<plugin>...] [--all] [--exclude=<name>] [--network]
7474
[--network]
7575
If set, the plugin will be activated for the entire multisite network.
7676

77+
[--force]
78+
If set, deactivates and reactivates the plugin to re-run activation hooks, even if already active.
79+
7780
**EXAMPLES**
7881

7982
# Activate plugin
@@ -98,6 +101,11 @@ wp plugin activate [<plugin>...] [--all] [--exclude=<name>] [--network]
98101
Plugin 'buddypress' network activated.
99102
Success: Activated 2 of 2 plugins.
100103

104+
# Force re-running activation hooks for an already active plugin.
105+
$ wp plugin activate hello --force
106+
Plugin 'hello' activated.
107+
Success: Activated 1 of 1 plugins.
108+
101109

102110

103111
### wp plugin deactivate

0 commit comments

Comments
 (0)