Skip to content

Instantly share code, notes, and snippets.

@neverything
Last active August 25, 2020 17:44
Show Gist options
  • Save neverything/97ea92d34507c667012d0b35d78d322f to your computer and use it in GitHub Desktop.
Save neverything/97ea92d34507c667012d0b35d78d322f to your computer and use it in GitHub Desktop.
Find installed WordPress on cPanel servers using SSH and the command line. https://silvanhagen.com/find-old-wordpress-installs/
# Change the path below according to your hosting
# - Add a cron job to get an email every week :)
find /home/*/public_html/ -type f -iwholename "*/wp-includes/version.php" -exec grep -H "\$wp_version =" {} \;
# Empty lines to make it easy to copy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment