Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • @danleachuk

    Participant

    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’ );
    }
    }

    @danleachuk

    Participant

    Would that work if I wanted to check the user was an editor and NOT an administrator?

    @danleachuk

    Participant

    I did but I want to check for a specific user role beforehand.

Viewing 3 replies - 1 through 3 (of 3 total)
Skip to toolbar