Skip to:
Content
Pages
Categories
Search
Top
Bottom

Components and new WP Toolbar Integration

  • I’ve noticed that the recent version of BP uses the WP admin bar now, which is great! Already implementing this on Events Manager for the next update.

    Problem is, that makes previous integrations I’ve made with the buddybar defunct. Looking into the code and how other components (which have been refactored really nicely) do this, not a big deal to implement, however I’m surprised that there’s no mention of this anywhere, even on the forums.

    Are there any instructions I’m blind to? Google has gotten me nowhere. I’m asking on the basis of possibly contributing some documentation to this, based on my current experience migrating my current code.

Viewing 3 replies - 1 through 3 (of 3 total)

  • modemlooper
    Moderator

    @modemlooper

    if ( version_compare( BP_VERSION, ‘1.5’, ‘>’ ) )

    You would have to test version and do backpat

    cheers for the reply, but are you sure that’s necessary?

    If you’re extending BP_Component (which is since 1.5 but I don’t want to backpat further for, a year is long enough), it’s very easy to add new menus all you do is add the setup_admin_bar function to your class and it’s called automatically.

    At that point, it’s pretty safe to assume BP does that check for you.


    modemlooper
    Moderator

    @modemlooper

    I must have misunderstood you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Components and new WP Toolbar Integration’ is closed to new replies.
Skip to toolbar