How can I (easily) determine which of my wordpress sites are using a given plugin, on a Wordpress Multisite install?
Let's say I have 1,000 wordpress sites on a Wordpress Multisite install. I have 100 plugins.
For each plugin, I want to list all of the sites that are using that plugin.
In the GUI, I can only see how this can be done in about 1 million clicks. Is there a query I can run against the DB (and maybe cleanup with bash/awk/etc) that will automatically
- Get all of the plugins installed
- For each plugin, list all of the sites that use that plugin (by
What's a fast way to determine all of the sites that use each of my installed plugins on Wordpress Multisite?
wp-cliis definitely a valid answer to this question. However, for this server, I can only use software that can be installed from a secure package manager with cryptographically signed manifests (which
aptprovides but composer, curl, git, brew, etc do not provide)
wp-cli.pharas the wp cli homepage says in that environment is not an option? Even then nothing prevents you downloading the data and running WP CLI locally, and WP CLI may be a hard requirement as you mentioned 1k+ sites ( and ignoring that files and commits in git are all managed using a cryptographic hash chain )