Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Removing Automatic Linking in Profiles

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

  • Henry
    Participant

    @henrybaum

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


    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


    Henry
    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’ );


    Henry
    Participant

    @henrybaum

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

    Thanks.


    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


    Henry
    Participant

    @henrybaum

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


    Fachry Ali
    Member

    @fbajri

    which file? i wanna know too :D


    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.
Skip to toolbar