plugin to add menu/link to Buddybar
-
howdy,
I\\\’ve created/modified a plugin to add a menu/link to the buddybar, here it is..
<?php
function add_menu() {
global $bp; ?>
<li class=\\\"align-left\\\"><a>\\\"><?php _e( \\\'More\\\', \\\'buddypress\\\' ) ?></a>
<ul>
<li><a>/about\\\" title=\\\"<?php _e( \\\'About\\\', \\\'buddypress\\\' ) ?>\\\"><?php _e( \\\'About\\\', \\\'buddypress\\\' ) ?></a></li>
<li class=\\\"alt\\\"><a>/help\\\" title=\\\"<?php _e( \\\'Help\\\', \\\'buddypress\\\' ) ?>\\\"><?php _e( \\\'Help\\\', \\\'buddypress\\\' ) ?></a>
<li class=\\\"alt\\\"><a>/contact\\\" title=\\\"<?php _e( \\\'Contact\\\', \\\'buddypress\\\' ) ?>\\\"><?php _e( \\\'Contact\\\', \\\'buddypress\\\' ) ?></a>
<li class=\\\"alt\\\"><a>/terms\\\" title=\\\"<?php _e( \\\'Terms\\\', \\\'buddypress\\\' ) ?>\\\"><?php _e( \\\'Terms\\\', \\\'buddypress\\\' ) ?></a>
<li class=\\\"alt\\\"><a>/privacy\\\" title=\\\"<?php _e( \\\'Privacy\\\', \\\'buddypress\\\' ) ?>\\\"><?php _e( \\\'Privacy\\\', \\\'buddypress\\\' ) ?></a>
<li class=\\\"alt\\\"><a>/developers\\\" title=\\\"<?php _e( \\\'Developers\\\', \\\'buddypress\\\' ) ?>\\\"><?php _e( \\\'Developers\\\', \\\'buddypress\\\' ) ?></a>
<?php
$doing_admin_bar = false;
}
add_action(\\\'bp_adminbar_menus\\\',\\\'add_menu\\\',200);
?>
</ul>Sorry, i don\\\’t know the code for backticks…
EDIT: now it is.
just wanna share it…
– aron
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.