Answers for "how to remove wp-admin from wordpress using Code"

1

wordpress make new users not be able to see top bar

add_action('after_setup_theme', 'remove_admin_bar');
 
function remove_admin_bar() {
if (!current_user_can('administrator') && !is_admin()) {
  show_admin_bar(false);
}
}
Posted by: Guest on November-08-2020

Code answers related to "how to remove wp-admin from wordpress using Code"

Browse Popular Code Answers by Language