How to remove wp panel for users

First of all, you should never use current_user_can function with roles. You should use only capabilities as params, as Codex clearly states: While checking against particular roles in place of a capability is supported in part, this practice is discouraged as it may produce unreliable results. So, if we’ve dealt with that major issue… There … Read more