get_sites() for sites registered before given date
Here, this should permanently delete all sites older than 30 days (except the one with ID 1). I was not able to make it work with date_query. If you need to call get_sites() for these sites for some other reason, just instead of deleting them, add their IDs in an array, and then call get_sites() … Read more