bp-custom.php Just Not Working

Hi Team,

I'm trying to change slugs and labels and disable links within the BuddyPress profile. I have created a bp-custom.php file in my plugins folder.

This is the code that I copied for this BP article: http://codex.buddypress.org/developer/customizing/customizing-labels-messages-and-urls/#slugs

function remove_xprofile_links() {
remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 );
}
add_action( 'bp_init', 'remove_xprofile_links' );

However, links are still showing up in my profile! I only want them to show for certain access levels (will get to that later)

But it seems that this hack no longer works with BP 1.7.

Can anyone confirm or deny this please? Thanks in advance!