Automatically Change Roles after (x) Posts
-
Hi There
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:
$user->set_role
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…
gcleve
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Automatically Change Roles after (x) Posts’ is closed to new replies.