Skip to:
Content
Pages
Categories
Search
Top
Bottom

Where Is The Code for The WP-Admin-Bar?


  • alanchrishughes
    Participant

    @alanchrishughes

    I am wanting to place the admin bar links in a sidebar, I’ve figured out how to call and place it using ?php wp_footer(); ? > but I can’t find the actual content/code/file for this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • bp-core/bp-core-adminbar.php


    r-a-y
    Keymaster

    @r-a-y

    If you simply want to add links to the BuddyBar, then hook into the “bp_adminbar_menus” action.

    eg.

    function my_custom_adminbar_links() {
    echo '<li>Pretend this is a link!</li>';
    }
    add_action( 'bp_adminbar_menus', 'my_custom_adminbar_links' );

    Put this snippet somewhere in your theme’s functions.php.


    alanchrishughes
    Participant

    @alanchrishughes

    Thank you. Kind of strange they put that in the Buddypress folders, shouldn’t that be inside the themes instead so you can keep updating buddypress?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Where Is The Code for The WP-Admin-Bar?’ is closed to new replies.
Skip to toolbar