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

Dashboard menu missing

The problem was in the names of the meta keys of the wpAA_users table: instead of using wp_capabilities and wp_user_level I should have used the actual prefix, that is wpAA_capabilities and wpAA_user_level. With these modifications I can now access the site as administrator.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)