Skip to content

A WP-CLI command to list all sites in a Multisite network that have activated a given plugin

Notifications You must be signed in to change notification settings

Hive-IT-GmbH/wp-cli-plugin-active-on-sites

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

WP-CLI - Plugin Active on Sites

A WP-CLI command to list all sites in a Multisite network that have activated a given plugin. Based on Ian Dunns great work.

Installing

wp package install hive-it-gmbh/wp-cli-plugin-active-on-sites

Usage

wp plugin active-on-sites <plugin_slug>

Options

[--field=] Prints the value of a single field for each site. [--fields=] Comma-separated list of fields to show. [--format=] Render output in a particular format.

Example

> wp plugin active-on-sites eu-cookie-law-widget

+---------+----------------------------------------+
| blog_id | url                                    |
+---------+----------------------------------------+
| 320     | http://2014.madrid.wordcamp.dev/       |
| 371     | http://2014.paris.wordcamp.dev/        |
| 413     | http://2015.london.wordcamp.dev/       |
| 464     | http://2015.milano.wordcamp.dev/       |
| 522     | http://2016.geneva.wordcamp.dev/       |
| 571     | http://2016.belfast.wordcamp.dev/      |
| 654     | http://2017.europe.wordcamp.dev/       |
+---------+----------------------------------------+

About

A WP-CLI command to list all sites in a Multisite network that have activated a given plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%