Skip to content

Instantly share code, notes, and snippets.

View jamesgreenblue's full-sized avatar

James Greenhalgh CITP MBCS jamesgreenblue

View GitHub Profile
@jamesgreenblue
jamesgreenblue / anonymise-users.php
Created May 12, 2024 16:06 — forked from trainingspark/anonymise-users.php
A simple script to quickly anonymise the users of a WordPress website.
<?php
/*
A simple script to quickly anonymise the users of a WordPress website.
It works by replacing all of your existing users with new randomly generated user details.
Simply add this file to the root directory of your WordPress installation, then go to <<your website address/>>/anonymise-users.php
select agent, count(*)
from `wp_ahm_download_stats`
group by agent
ORDER BY `count(*)` DESC