Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WordPress rutine SH to update all Local WordPress
#!/bin/bash
#
#
clear
for d in * ; do
#if [ -e "$d/wp-config.php" ]; then
cd "$d"
echo "-----------------------------"
echo "Updating WordPress in... $d"
wp core update
wp theme update genesis
wp plugin update --all
wp transient delete-all
wp core language update
wp language plugin update --all
wp plugin install simply-show-hooks --activate
wp plugin install https://github.com/corysimmons/wp-sync-db/archive/master.zip --activate
wp plugin install https://github.com/wp-sync-db/wp-sync-db-media-files/archive/master.zip --activate
cd ..
#else
# echo "$d is not a WordPress folder."
#fi
done
display notification "Actualizados WordPress Local a última versión" with title "Actualización WordPress"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.