File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ See the WordPress [Plugin Handbook](https://developer.wordpress.org/plugins/) de
5757Activates 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
You can’t perform that action at this time.
0 commit comments