WordPress - get user role - best practice

LCweb said

Take a look to this :wink:

Yeah I knew about that, but note this:
Do not pass a role name to current_user_can(), as this is not guaranteed to work correctly.