Skip to:
Content
Pages
Categories
Search
Top
Bottom

working inside a class with buddyPress


  • grosbouff
    Participant

    @grosbouff

    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)
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