5 years, 6 months ago
Cracked it. Need to call bp_core_load_template after removing the navigation item.
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.
See also: WordPress.org •
Follow BuddyPress on Twitter •
Contact Us •
Terms of Service