Skip to content

Instantly share code, notes, and snippets.

@michael-sumner
Created September 8, 2023 13:54
Show Gist options
  • Save michael-sumner/6cdfca710a33bc1161a5aba43846676c to your computer and use it in GitHub Desktop.
Save michael-sumner/6cdfca710a33bc1161a5aba43846676c to your computer and use it in GitHub Desktop.
WP-CLI to check which sites in a multisite network have a specific plugin activated
wp site list --field=url | xargs -I % sh -c 'wp plugin is-active wordpress-seo --url=% && echo "Plugin is activated on site %"'
@michael-sumner
Copy link
Author

Replace wordpress-seo with your plugin slug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment