Change WordPress user roles and capabilities › Forums › Bug Reports › Some Buddypress menu item not detected › Reply To: Some Buddypress menu item not detected
13/03/2016 at 02:15
#2110
Vladimir
Keymaster
In order to remove ‘Emails->Customize’ menu item use this code:
add_action('admin_menu', 'my_remove_buddypress', 20);
function my_remove_buddypress() {
if (current_user_can('your-own-role')) {
remove_submenu_page('edit.php?post_type=bp-email', 'bp-emails-customizer-redirect');
}
}