Skip to:
Content
Pages
Categories
Search
Top
Bottom

working inside a class with buddyPress

  • @grosbouff

    Participant

    Hi, i’m creating a plugin which is contained inside a class.

    When I’m in the class, I do

    add_action('admin_notices', array(&$this, 'hook_admin_notices'));.

    for example, to launch the hook “hook_admin_notices”. It is very handfull…

    But how can I do with this :

    bp_core_add_subnav_item( $bp->groups->slug, 'group-map', __('Group Map', 'buddypress'), $group_link, 'bp_mappress_screen_group', 'group-map' );

    ;I would like to move

    bp_mappress_screen_group inside my class

    but

    bp_core_add_subnav_item( $bp->groups->slug, 'group-map', __('Group Map', 'buddypress'), $group_link, array(&$this, 'screen_group'), 'group-map' ); does not work…

    Thanks !

Viewing 2 replies - 1 through 2 (of 2 total)
  • @apeatling

    Keymaster

    Please check out the function

    bp_core_new_subnav_item()

    That will allow you to do what you are trying to do. The function you are using is deprecated in 1.1.

    @jeffsayre

    Participant

    Grosbouff-

    You posted the same basic request in this thread 2 days ago and I answered it, giving you the same advice that Andy did above.

    Please do not double post. Use the same thread.

    I’m going to close this thread as your original post should do.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘working inside a class with buddyPress’ is closed to new replies.
Skip to toolbar