BuddyBoss Home – Web Support Forums Themes Boss. theme Add Dashboard Link for another Role

Viewing 4 posts - 1 through 4 (of 4 total)
  • Question

    #39674
    @ubrandon

    Hey there! I found the code for <!– Dashboard links –> which makes the dashboard link only show in the profile dropdown menu for admins, but how difficult would it be to customize the code so it also shows for a custom role like “Teachers”? Thank you!!

    Answers

    #39690

    Alyssa
    Participant
    @alyssa-buddyboss

    @ubrandon you could do something like this:

    if(get_role()=='teacher'){
    /* Do Code */
    }
    #40344
    @ubrandon

    I ended up putting it in the buddybar for admins and teachers in our school. Simply put oururl.com/wp-admin but then made it only show up for select roles using a role management plugin. Just FYI for anyone else. Thanks!

    #40413

    Anonymous
    @
Viewing 4 posts - 1 through 4 (of 4 total)
  • The question ‘Add Dashboard Link for another Role’ is closed to new replies.