File tree Expand file tree Collapse file tree 2 files changed +53
-0
lines changed
Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Original file line number Diff line number Diff line change @@ -327,6 +327,33 @@ wp plugin install <plugin|zip|url>... [--version=<version>] [--force] [--ignore-
327327
328328
329329
330+ ### wp plugin is-active
331+
332+ Checks if a given plugin is active.
333+
334+ ~~~
335+ wp plugin is-active <plugin> [--network]
336+ ~~~
337+
338+ Returns exit code 0 when active, 1 when not active.
339+
340+ ** OPTIONS**
341+
342+ <plugin>
343+ The plugin to check.
344+
345+ [--network]
346+ If set, check if plugin is network-activated.
347+
348+ ** EXAMPLES**
349+
350+ # Check whether plugin is Active; exit status 0 if active, otherwise 1
351+ $ wp plugin is-active hello
352+ $ echo $?
353+ 1
354+
355+
356+
330357### wp plugin is-installed
331358
332359Checks if a given plugin is installed.
@@ -1046,6 +1073,30 @@ wp theme install <theme|zip|url>... [--version=<version>] [--force] [--ignore-re
10461073
10471074
10481075
1076+ ### wp theme is-active
1077+
1078+ Checks if a given theme is active.
1079+
1080+ ~~~
1081+ wp theme is-active <theme>
1082+ ~~~
1083+
1084+ Returns exit code 0 when active, 1 when not active.
1085+
1086+ ** OPTIONS**
1087+
1088+ <theme>
1089+ The plugin to check.
1090+
1091+ ** EXAMPLES**
1092+
1093+ # Check whether theme is Active; exit status 0 if active, otherwise 1
1094+ $ wp theme is-active twentyfifteen
1095+ $ echo $?
1096+ 1
1097+
1098+
1099+
10491100### wp theme is-installed
10501101
10511102Checks if a given theme is installed.
Original file line number Diff line number Diff line change 4949 " plugin delete" ,
5050 " plugin get" ,
5151 " plugin install" ,
52+ " plugin is-active" ,
5253 " plugin is-installed" ,
5354 " plugin list" ,
5455 " plugin path" ,
6465 " theme enable" ,
6566 " theme get" ,
6667 " theme install" ,
68+ " theme is-active" ,
6769 " theme is-installed" ,
6870 " theme list" ,
6971 " theme mod" ,
You can’t perform that action at this time.
0 commit comments