Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,33 @@ wp plugin install <plugin|zip|url>... [--version=<version>] [--force] [--ignore-



### wp plugin is-active

Checks if a given plugin is active.

~~~
wp plugin is-active <plugin> [--network]
~~~

Returns exit code 0 when active, 1 when not active.

**OPTIONS**

<plugin>
The plugin to check.

[--network]
If set, check if plugin is network-activated.

**EXAMPLES**

# Check whether plugin is Active; exit status 0 if active, otherwise 1
$ wp plugin is-active hello
$ echo $?
1



### wp plugin is-installed

Checks if a given plugin is installed.
Expand Down Expand Up @@ -1046,6 +1073,30 @@ wp theme install <theme|zip|url>... [--version=<version>] [--force] [--ignore-re



### wp theme is-active

Checks if a given theme is active.

~~~
wp theme is-active <theme>
~~~

Returns exit code 0 when active, 1 when not active.

**OPTIONS**

<theme>
The theme to check.

**EXAMPLES**

# Check whether theme is Active; exit status 0 if active, otherwise 1
$ wp theme is-active twentyfifteen
$ echo $?
1



### wp theme is-installed

Checks if a given theme is installed.
Expand Down
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"plugin delete",
"plugin get",
"plugin install",
"plugin is-active",
"plugin is-installed",
"plugin list",
"plugin path",
Expand All @@ -64,6 +65,7 @@
"theme enable",
"theme get",
"theme install",
"theme is-active",
"theme is-installed",
"theme list",
"theme mod",
Expand Down
2 changes: 1 addition & 1 deletion src/Theme_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ public function is_installed( $args, $assoc_args ) {
* ## OPTIONS
*
* <theme>
* : The plugin to check.
* : The theme to check.
*
* ## EXAMPLES
*
Expand Down