Title: Disabling Links Not Working&#8230;
Last modified: August 21, 2016

---

# Disabling Links Not Working…

 *  Resolved [praisehim](https://wordpress.org/support/users/praisehim/)
 * (@praisehim)
 * [13 years ago](https://wordpress.org/support/topic/disabling-links-not-working/)
 * Hi,
 * Awesome plugin! I’m having trouble with the following code:
 *     ```
       <?php
       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' );
       ?>
       ```
   
 * I’m trying to de-activate links being made. I am currently running BuddyPress
   1.7.1 and Buddypress Xprofile Custom Fields Type 1.5.5.5
 * How would I be able to disable the links being created? As of now, the only way
   to disable the links being created from the values in the custom fields is by
   de-activating the plugin.
 * Please help. Many thanks!
 * [http://wordpress.org/extend/plugins/buddypress-xprofile-custom-fields-type/](http://wordpress.org/extend/plugins/buddypress-xprofile-custom-fields-type/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [EamonMcCambridg](https://wordpress.org/support/users/eamonmccambridg/)
 * (@eamonmccambridg)
 * [13 years ago](https://wordpress.org/support/topic/disabling-links-not-working/#post-3722203)
 * This will [work](http://wordpress.org/support/topic/links-turn-off?replies=6)!
 *  Plugin Author [donmik](https://wordpress.org/support/users/atallos/)
 * (@atallos)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/disabling-links-not-working/#post-3722265)
 * Solved

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Disabling Links Not Working…’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-xprofile-custom-fields-
   type.svg)
 * [Buddypress Xprofile Custom Fields Type](https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [donmik](https://wordpress.org/support/users/atallos/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/disabling-links-not-working/#post-3722265)
 * Status: resolved