Created
September 8, 2023 13:54
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wp site list --field=url | xargs -I % sh -c 'wp plugin is-active wordpress-seo --url=% && echo "Plugin is activated on site %"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Replace
wordpress-seo
with your plugin slug