I was wondering if you already have some php code documented to be able to exclude pending roles from the messaging centre from both the search facility and the directory listing?
We have a number of members registered on the system that don’t have an email address setup yet ( we add them as email@example.com) and some with valid emails that have not activated their accounts either so I would like to exclude them from being listed or found in the MC until the needful admin has been completed ( i.e. activated as a subscriber or until they have a valid email address)
The answer for us is to place some php in the function file to exclude accounts with the roles in a pending state. I have looked to see if this can be done via the back-end setting but there is not any obvious route for this.
Very sorry I was lazy, I did not see the Wood for trees, I did not see the role to role block! I think this will do the trick and I can set three entries for subscriber , editor, and admin, (block for new message)so they can’t send a new message to a pending role.