Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Adding menu items to the admin bar


Chau kar
Participant

@animeonsen

function pages(){
?>

<li><a href=”#”>Pages</a>
<ul>
<li><a href=”http://www.animeonsen.com”>Home</a></li&gt;
<li><a href=”http://www.animeonsen.com/about”>About</a></li&gt;
<li><a href=”http://www.animeonsen.com/support-us”>Support us</a></li>
<li><a href=”http://www.animeonsen.com/advertise”>Advertise</a></li&gt;
<li><a href=”http://www.animeonsen.com/anime-stores”>Anime stores</a></li>
<li><a href=”http://www.animeonsen.com/friends”>Friends</a></li&gt;
<li><a href=”http://www.animeonsen.com/archives”>Archives</a></li&gt;
<li><a href=”http://www.animeonsen.com/contact”>Contact</a></li&gt;
</ul>
</li>

<?php
}
add_action( ‘bp_adminbar_menus’, ‘pages’, 15 );

That is what I did. (Sorry don’t know how to post the code as normal text!!!) It is not the best solution, but it works! Let me know if you figured out a better way.

Mod Edit// Less than angle brackets escaped – BB tags do not work .

Skip to toolbar