I am not sure. I bought a plugin from codecanyon and am trying to alter it to work with buddypress. I think this is the code I will have to alter
public function __construct() {
$this -> admin = WP_Atr_Admin :: get_instance();
# registration hooks:
add_action( 'login_enqueue_scripts', array( $this, 'initialize_registration' ) );
add_action( 'register_form', array( $this, 'add_checkboxes_to_registration' ) );
add_filter( 'registration_errors', array( $this, 'validate_registration' ), 10, 3 );
# mu
add_action( 'signup_header', array( $this, 'initialize_registration' ) );
add_filter( 'wpmu_validate_user_signup', array( $this, 'mu_validate_registration' ), 10, 3 );
add_action( 'signup_extra_fields', array( $this, 'mu_add_checkboxes_to_registration' ) );
# add button
add_filter( 'the_content', array( $this, 'add_button_to_pages' ) );
$this -> register_page_status();
if( is_multisite() ) {
add_filter( 'all_plugins', array( $this, 'hide_plugin_in_mu_sites' ) );
}
}
I would figure I would prefix bp_ to some of the code here
# registration hooks:
add_action( ‘bp_login_enqueue_scripts’, array( $this, ‘initialize_registration’ ) );
add_action( ‘bp_register_form’, array( $this, ‘add_checkboxes_to_registration’ ) );
add_filter( ‘bp_registration_errors’, array( $this, ‘validate_registration’ ), 10, 3 );
but it like there is more to it than that according to your link.