Skip to content

Instantly share code, notes, and snippets.

@jasontucker
Created September 5, 2015 03:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasontucker/7306d2058a154beb123f to your computer and use it in GitHub Desktop.
Save jasontucker/7306d2058a154beb123f to your computer and use it in GitHub Desktop.
WordPress - Redownload all installed and active plugins
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