Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP 1.5 add subnav item to Admin Options


  • shanebp
    Moderator

    @shanebp

    Anyone have an example or tip for how to add a subnav item to the Admin Options dropdown in BP 1.5 via bp-custom ?

    This adds a top link, but it needs to be a subnav item under Admin Options:

    
    <?php
    function add_delete_ban_user_link() {
    global $bp;
    if ( !is_super_admin() || bp_is_my_profile() || !$bp->displayed_user->id )
    return false;
    ?>
    <li><a href="displayed_user->domain . 'admin/delete-ban-user/', 'delete-ban-user' ) ?>" class="confirm">displayed_user->fullname ) ) ?></a></li>
    <?php
    }
    
    add_action( 'bp_adminbar_menus', 'add_delete_ban_user_link', 20 );
    

    I don’t want to use the WP_ADMIN_BAR

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘BP 1.5 add subnav item to Admin Options’ is closed to new replies.
Skip to toolbar