Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save tswartz-vertax/a32a5cf3772e73fe32ad3b9d4af9baf2 to your computer and use it in GitHub Desktop.

Select an option

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)
# 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