How to remove wp panel for users

Hello i have a question , i want to create the whole panel for users by myself and i dont wanna just hide the wordpress panel i dont wanna let users have access to wordpress panel, is that possible , because i know how to hide it:

add_action(‘after_setup_theme’, ‘remove_admin_bar’);

function remove_admin_bar() {
if (!current_user_can(‘administrator’) && !is_admin()) {
show_admin_bar(false);
}
}

but if someone type site/wp-admin he still have access.

Read more here:: How to remove wp panel for users

Leave a Reply

Your email address will not be published. Required fields are marked *