working inside a class with buddyPress
-
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 !
- The topic ‘working inside a class with buddyPress’ is closed to new replies.