BuddyBoss Home – Web Support Forums Themes Boss. theme How make vissible admin bar for customers?

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

    #52009
    @wasoo

    Now it seens for admin^ but I need show admin bar for customers. How to do it? Thanks a lot.

    Answers

    #52095

    Anonymous
    @

    Hi @wasoo,

    At present you can enable it for admin from BuddyBoss theme setting, and for customers need to check with developers, But seems it will need to edit the parent them also.
    boss_show_adminbar()
    buddyboss_remove_adminbar_inline_style()
    these are used at multiple instaces to register and deregister scripts.
    Regards

    #52146
    @wasoo

    Hello, thank You for Your response.
    How do You think^ it is correct if я will use this snippet in function.php?

    function boss_show_adminbar_for_all() {
    $show = false;
    /*
    if ( !is_admin() && current_user_can( ‘manage_options’ ) && (boss_get_option( ‘boss_adminbar’ )) ) {
    $show = true;
    }
    */
    if ( !is_admin() && current_user_can( ‘read’ ) && (boss_get_option( ‘boss_adminbar’ )) ) {
    $show = true;
    }
    return $show;
    }
    add_filter( ‘boss_show_adminbar’, ‘boss_show_adminbar_for_all’ );

    #52347

    Anonymous
    @

    It doesn’t seems working, I have notified about it to developers to make a suggestion
    Regards
    Varun Dubey

    #52430
    @wasoo

    I’am not sure but it works. Adminbar showing, but I’am afraid maybe it will make errors somewhere else.

    #52480

    Anonymous
    @

    If it is working, then all fine
    not sure why it did not work for me 🙂
    Regards

Viewing 6 posts - 1 through 6 (of 6 total)
  • The question ‘How make vissible admin bar for customers?’ is closed to new replies.