Reply To: CAN BE DELETED
You need to check if the button was clicked.
Try something like this:
function jay_check_transfer_click() {
if ( !bp_is_groups_component() && !bp_is_current_action( 'transfer_offer' ) )
return false;
send_transfer_offer();
}
add_action( 'bp_actions', 'jay_check_transfer_click' );
In all your code, you may want to reference the members component instead of groups.