The Events Calendar – plugin to delete venues with no events
![Photo from Stephen Phillips - Hostreviews.co.uk](https://boltwood.com/wp-content/uploads/2023/12/stephen-phillips-hostreviews-co-uk-sSPzmL7fpWc-unsplash-300x210.jpg)
I created the function below to clean up venues that have no events associated. You can use a WordPress cron to run it periodically. For ease, I have created plugin you can download below. The plugin adds a “Delete Empty Venues” option to the settings page and runs the function. I used wp_trash_post() rather than […] Read more…