Skip to content

Instantly share code, notes, and snippets.

@iandunn
Last active July 29, 2016 14:46
Show Gist options
  • Save iandunn/77a3c86e1a69afd830e93ed908d31920 to your computer and use it in GitHub Desktop.
Save iandunn/77a3c86e1a69afd830e93ed908d31920 to your computer and use it in GitHub Desktop.
WP-CLI command to list all sites in a Multisite network that have activated the given plugin.
<?php
/*
* This is now available as a WP-CLI package:
*
* wp package install iandunn/wp-cli-plugin-active-on-sites
* wp plugin active-on-sites <plugin_slug>
*
* See https://github.com/iandunn/wp-cli-plugin-active-on-sites
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment