BuddyBoss Home – Web Support Forums Themes BuddyBoss theme Hide BB page in admin theme menu

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

    #42316
    @frankwarwick

    For several user levels I want to hide the admin nav page /wp-admin/themes.php?page=buddyboss_settings_menu

    Although I have hidden the page for the required user levels in themes.php I can’t hide this page

    Thanks in advance for your help

    Answers

    #42410

    Alyssa
    Participant
    @alyssa-buddyboss

    @frankwarwick this is not an upgrade safe edit as it is highly unusual in buddyboss/buddyboss-inc/admin.php:14 find this code:
    add_action('admin_menu', 'buddyboss_admin_menu');
    replace with this:

    if( is_admin() && !current_user_can( [insert user role here to exclude] ) ){
      add_action('admin_menu', 'buddyboss_admin_menu');
    }
    #42411
    @frankwarwick

    Thanks @tj chester
    I was looking for something to add into the functions.php so it would be an upgrade safe edit

    Can I child this page?

    #42453

    Alyssa
    Participant
    @alyssa-buddyboss

    @frankwarwick unfortunately admin pages do not follow the child theme hierarchy. I’ll have Varun take a look but no guarantees.

    Can you confirm this solution works for your needs?

Viewing 4 posts - 1 through 4 (of 4 total)
  • The question ‘Hide BB page in admin theme menu’ is closed to new replies.