Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@davidperezgar
Created April 23, 2019 15:22
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 davidperezgar/dcbe07f6f9bd434defc9a69082069116 to your computer and use it in GitHub Desktop.
Save davidperezgar/dcbe07f6f9bd434defc9a69082069116 to your computer and use it in GitHub Desktop.
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