Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Removing Automatic Linking in Profiles

Viewing 8 replies - 1 through 8 (of 8 total)
  • Profile photo of henrybaum
    henrybaum
    Participant

    @henrybaum

    Anyone? This really seems like a function that should be optional in BP.

    Profile photo of Prince Abiola Ogundipe
    Prince Abiola Ogundipe
    Participant

    @naijaping

    @henrybaum, put the following code inside your bp-custom.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’ );

    Regards

    Profile photo of henrybaum
    henrybaum
    Participant

    @henrybaum

    That turned the site white. This was already there:

    function remove_xprofile_links() {
    remove_filter( ‘bp_get_the_profile_field_value’, ‘xprofile_filter_link_profile_data’, 50, 2 );
    }
    add_action( ‘plugins_loaded’, ‘remove_xprofile_links’ );

    Profile photo of henrybaum
    henrybaum
    Participant

    @henrybaum

    How useful is the above code – will replacing one with the other affect anything?

    Thanks.

    Profile photo of aces
    aces
    Participant

    @aces

    It looks like one is for buddypress 1.5+ and the other for buddypress 1.2.9-

    See: https://codex.buddypress.org/extending-buddypress/bp-custom-php/#examples

    Profile photo of henrybaum
    henrybaum
    Participant

    @henrybaum

    Ah! Thanks – I upgraded the plugin, but not that file. Working now.

    Profile photo of fbajri
    fbajri
    Member

    @fbajri

    which file? i wanna know too :D

    Profile photo of aces
    aces
    Participant

    @aces

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Removing Automatic Linking in Profiles’ is closed to new replies.