Re: Hiding buddybar add-on menus when users are not logged in
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(){
?>
<ul class=”your-ul-list-css-classname”>
<li class=”alt”>Help 2
<li class=”alt”>Help 4
<?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.