Skip to content

Instantly share code, notes, and snippets.

@lsemenenko
Created February 15, 2020 10:18
Show Gist options
  • Save lsemenenko/c07fc04cafb236127971b9d2cf5d279b to your computer and use it in GitHub Desktop.
Save lsemenenko/c07fc04cafb236127971b9d2cf5d279b to your computer and use it in GitHub Desktop.
Interate through plugin folders, rename, and pause; used for troubleshooting plugin issues
for i in $(find ./wp-content/plugins -maxdepth 1 ! -path . -type d)
do
sudo mv ${i} ${i}.old
echo "Disabled ${i}"
read -p "Press enter to continue"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment