@danleachuk
8 years, 7 months ago
Cracked it. Need to call bp_core_load_template after removing the navigation item.
Final code:
if(!current_user_can(‘administrator’)){ bp_core_remove_subnav_item( bp_get_current_group_slug() . ‘_manage’, ‘delete-group’ ); bp_core_load_template( ‘groups/single/settings/general’ ); } }
Would that work if I wanted to check the user was an editor and NOT an administrator?
I did but I want to check for a specific user role beforehand.