I'm 90% of the way through building a private members site using WordPress and would greatly appreciate any help that could be given on my final hurdle.
I need to create a simple plugin of some sort that will check the number of posts a user has. If posts= > 1, then change the users role from 'contributor' to 'author'.
However, this should not affect the roles above this, i.e. editor, Admins etc.
The function to change the roles is:
but the rest of it is going over my head...
Any help towards getting this up and running would be hugely appreciated!
Thanks in advance...