Created
September 22, 2023 14:14
-
-
Save neverything/79b0c1d87b52471c164fca8b49c4ef9e to your computer and use it in GitHub Desktop.
Get the 108 most popular WordPress plugins and install them using the 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
#!/bin/bash | |
# Download the JSON file | |
curl -sSL https://plugintable.com/plugins.json -o plugins.json | |
# Extract the plugin slugs using jq | |
plugin_slugs=$(jq -r '.[].slug' plugins.json) | |
# Loop through each plugin slug and install it using wp-cli | |
for slug in $plugin_slugs; do | |
wp plugin install "$slug" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment