Can I delete user's posts when demoted?

I allow my paid members to post content. I would like for these posts to be deleted when they end their membership, is there a way to do this? I’d be happy to change EOT behaviour to delete the users instead of demote if that means their posts would be deleted as well. My only concern would be if their membership was deleted because they failed a couple of payments rather than intentionally ending it. I don’t want that to happen to them. Any suggestions on the best way to remove posts of members at EOT? I appreciate any help or suggestions you can give!

You could use an appropriate cancellation hook to fire a function which would delete the member’s posts. You can see the list of available hooks here: https://www.s2member.com/codex/stable/s2member/paypal/package-filters/

If you don’t know how to write such a function, I suggest you pay a developer to write it for you.

1 Like

Thanks for that KTS915, much appreciate it!