I need to be able to downgrade the user role of contributer after they have submitted a post. (Downgrade to a subscriber) Does anyone know how I could achieve this. I don't mind editing the core wordpress code.
I want to build in the ability to 'Guest Blog' but rather than using a dedicated plugin, I would rather turn the dashboard into a members area and allow members to write a single post. The most simplistic way of doing this would be to dynamically change a users role back to a subscriber after they have submitted a post. Ideally, I would like to also let the user edit their own post at any time but this might be difficult.
If anyone knows of any plugins that manage all of this functionality I would love to hear about it, or if you know a better way of achieving this?
But my main question is how to change the user role dynamically?