Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
Using the theme list command without url parameter shows if a theme is enabled for the network and active in the default site.
If you pass the url of a site of the network, this command shows if a theme is active in that site.
But i can't find a way to list which themes are inactive in every site of the network so i can safely disable and delete them, and i'd love to have this feature
The text was updated successfully, but these errors were encountered:
I wrote a standalone command for you to use. If you upgrade to WP-CLI's nightly release wp cli update --nightly, you can install the package and run it locally:
wp cli update --nightly
salty-wordpress ➜ .wp-cli wp package install danielbachhuber/wp-find-unused-themes-command
Installing danielbachhuber/wp-find-unused-themes-command (dev-master)
Updating /home/vagrant/.wp-cli/packages/composer.json to require the package...
Using Composer to install the package...
- Installing package
Success: Package installed successfully.
salty-wordpress ➜ .wp-cli j wordpress-test
salty-wordpress ➜ wordpress-test.dev wp find-unused-themes
Checking http://wordpress-test.dev/ for unused themes...
Checking http://wordpress-test.dev/foo/ for unused themes...
Checking http://wordpress-test.dev/bar/ for unused themes...
Checking http://wordpress-test.dev/testsite/ for unused themes...
| name | version |
| apples | 1.0.0 |
| customizr | 3.4.6 |
| twentyeleven | 2.2 |
| twentyfourteen | 1.6 |
| twentysixteen | 1.0 |
| twentythirteen | 1.5 |
| twentytwelve | 1.8 |
Feel free to open an issue in the project repo if you have any specific questions about it.
Sorry, something went wrong.
No branches or pull requests