masuk ke wp_content-> Thema wordpress-> kemudian buka tema dan buka file function.php copy file function dibawah ini
function
remove_admin_bar_links() {
global
$wp_admin_bar
;
$wp_admin_bar
->remove_menu(
'wp-logo'
);
// Hapus WordPress logo
$wp_admin_bar
->remove_menu(
'about'
);
// Hapus about WordPress link
$wp_admin_bar
->remove_menu(
'wporg'
);
// Hapus WordPress.org link
$wp_admin_bar
->remove_menu(
'documentation'
);
// Hapus WordPress documentation link
$wp_admin_bar
->remove_menu(
'support-forums'
);
// Hapus support forums link
$wp_admin_bar
->remove_menu(
'feedback'
);
// Hapus feedback link
$wp_admin_bar
->remove_menu(
'site-name'
);
// Hapus site name menu
$wp_admin_bar
->remove_menu(
'view-site'
);
// Hapus view site link
$wp_admin_bar
->remove_menu(
'updates'
);
// Hapus updates link
$wp_admin_bar
->remove_menu(
'comments'
);
// Hapus comments link
$wp_admin_bar
->remove_menu(
'new-content'
);
// Hapus content link
$wp_admin_bar
->remove_menu(
'w3tc'
);
// Jika anda menggunakan w3 total cache Hapus performance link
$wp_admin_bar
->remove_menu(
'my-account'
);
// Hapus user details tab
}
add_action(
'wp_before_admin_bar_render'
,
'remove_admin_bar_links'
);