Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Hiding buddybar add-on menus when users are not logged in


jfcarter
Participant

@jfcarter

Okay, I read the codex on the function, but cannot seem to get the syntax right. This is the sample code from another buddypress thread:

function my_help_link(){

?>

  • Help

    <ul class=”your-ul-list-css-classname”>

  • Help 1
  • <li class=”alt”>Help 2

  • Help 3
  • <li class=”alt”>Help 4

  • Help 5
  • <?php

    }

    add_action( ‘bp_adminbar_menus’, ‘my_help_link’, 14 );

    [Here with formatting: http://pastie.org/451047%5D

    I cannot figure out where to add the if (is_user_logged_in()) {} function.

    Skip to toolbar