Few extra actions to allow MultiSite plugin to work
|Reported by:||petronic||Owned by:|
|Severity:||Keywords:||multisite actions do_action|
I wrote a simple plugin that enables BuddyPress to work with MultiSite?. It requires few changes in BuddyPress core files, adding some actions to be more precise. Maybe you can consider adding them in some of the future BuddyPress releases?
I think that the easiest way (with minimum changes to core files) to integrate MultiSite? plugin and have separate BuddyPress networks with just one install is to create a new set of tables for each site. To enable this, I had to add actions in all BuddyPress components in functions
so I can change tables used.
in bp_activity_setup_globals() I added action
do_action( 'bp_setup_globals', 'activity' );
right after line 120.
in friends_setup_globals I added action
do_action( 'bp_setup_globals', 'friends' );
right after line 61.
and so on...
I would greatly appreciate if you add these actions in all setup_globals() functions or tell me if you see another way to accomplish this.