Created
September 5, 2015 03:15
-
-
Save jasontucker/7306d2058a154beb123f to your computer and use it in GitHub Desktop.
WordPress - Redownload all installed and active plugins
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
active=$(wp plugin list --status=active --format=csv --fields=name) | |
for plugin in $active; do | |
( | |
if [ ! $plugin = 'name' ]; then | |
wp plugin install $plugin --force | |
fi | |
) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment