Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Shell script to keep updated wordpress core and plugins.
# -------------------------------------
# Usage: % ./
# Author: Yuki Matsukura <>
# -------------------------------------
# to be strict syntax checker
set -e
# set low priority
renice -n 19 $$
for i in $WPS
echo "Processing: $i"
cd $i
echo " Upgrading plugins."
wp plugin update --all
echo " Upgrading themes."
wp theme update --all
echo " Upgrading Wordpress."
wp core update && wp core update-db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment