Created
October 5, 2018 14:19
-
-
Save dhavalgshah/ae923e2ccfdfd769a6eb1b281eb658ed to your computer and use it in GitHub Desktop.
Automate installing most popular 100 themes for WordPress using WordPress.org API and WP-CLI
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
# From: https://www.cssigniter.com/writing-effective-css-for-wordpress/ | |
curl -gs "https://api.wordpress.org/themes/info/1.1/?action=query_themes&request[browse]=popular&request[per_page]=100" | grep -o -E -e '"slug":".+?"' | awk -F: '{ print $2 }' | tr -d \" | xargs wp theme install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment