Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: custom button in buddy-bar


r-a-y
Keymaster

@r-a-y

Here’s a little something to try.

Create a “bp-custom.php” file in your /wp-content/plugins/ directory.

Put in the following code:

function my_new_buddybar_button(){
echo '<li class="no-arrow"><a href=""YOUR LINK"><img src="YOUR BUTTON" alt="" /></a></li>';
}
add_action('bp_adminbar_menus', 'my_new_buddybar_button', 101);

Untested, but should work…

Change “101” to where your button should be.

eg. “1” would move it to the beginning (right after the BP logo)

Skip to toolbar