Forked from bigdawggi/wp-cli-active-themes-across-network
Created
November 16, 2022 16:31
-
-
Save tswartz-vertax/a32a5cf3772e73fe32ad3b9d4af9baf2 to your computer and use it in GitHub Desktop.
WP-CLI commands to get the active themes across a WordPress blog network (single site ID with multiple blogs for the site)
This file contains hidden or 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
| # Be sure to change or omit the --network parameter; it defaults to 1. | |
| wp site list --network=4 --field=url | while read line; do wp theme list --status=active --field=name --url=$line >> /tmp/wpcli-themes.txt; done && sort /tmp/wpcli-themes.txt | uniq -c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment