Show special backend content for certain roles
Possible Reasons – current_user_can() function needs an input of a capability not user role, though it works sometime but we should not use user role as a input to this function. you’re passing the subscriber object to function which is a lowest possible role we can have on WordPress. That’s why !current_user_can(‘subscriber’) makes it unavailable … Read more