How to bulk delete all users with no posts?
If you have a large number of users to delete, you might consder using the wp user delete wp-cli command to avoid script timeouts. Here’s an example of a SQL query to delete all users without posts of any type and status. You can therefore try this untested one-liner: wp user delete $(wp db query … Read more