How to delete all previous posts by user, whenever they create a new one

I am working on a site where specific users are allowed front end creation of posts. I do this with WP User Frontend. I was wondering if there is a way to delete the previous post of a user, whenever they post a new one? I’m pretty comfortable with PHP, so hardcoding something to make this work is no problem.

Read more here: How to delete all previous posts by user, whenever they create a new one

Leave a Reply

Your email address will not be published. Required fields are marked *