fbpx

How to Remove the Auto Create Link on BuddyPress Profile Page

Removing the links automatically created in a member’s profile may be done by adding the following functions to the functions.php

function remove_xprofile_links() {
   if ( !bp_get_profile_field_data('field=Interests'))
      remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 );
  }
add_action( 'bp_init', 'remove_xprofile_links' );