Skip to:
Content
Pages
Categories
Search
Top
Bottom

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


John James Jacoby
Keymaster

@johnjamesjacoby

Try:

function my_help_link(){
if (is_user_logged_in()) {
?>
<li><a href="http://someplace.org">Help</a>
<ul class="your-ul-list-css-classname">
<li><a href="http://someplace.org">Help 1</a></li>
<li class="alt"><a href="http://someplace.org">Help 2</a></li>
<li><a href="http://someplace.org">Help 3</a></li>
<li class="alt"><a href="http://someplace.org">Help 4</a></li>
<li><a href="http://someplace.org">Help 5</a></li>
</ul>
</li>
<?php
}
}
add_action( 'bp_adminbar_menus', 'my_help_link', 14 );

Skip to toolbar