Skip to content

Instantly share code, notes, and snippets.

@neverything
Last active August 25, 2020 17:44
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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