Re: MU 2.9.1 Upgrade … What broke?
@Peterverkooijen: Wrap the class in a function, be sure to declare the class as a global inside the function. Then add action for ‘bp_init’ that loads the class and registers the group extension. Here’s how I did it:
function build_twitter_ext() {
global $BP_Group_Twitter;
class BP_Group_Twitter extends BP_Group_Extension {
[snip…….]
}
}
then below that add this:
add_action(‘bp_init’,’build_twitter_ext’);
add_action(‘bp_init’,’load_twitter_ext’);
function load_twitter_ext() {
bp_register_group_extension( ‘BP_Group_Twitter’ );
}
That should work for you.