Skip to:
Content
Pages
Categories
Search
Top
Bottom

Stopping auto links


  • loki_mdog
    Participant

    @loki_mdog

    So I have looked all over the web and found multiple ways that are supposed to work but I am still having links become automatically linked. I am running BuddyPress Version 1.7.3.

    I have tried:


    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' );

    and


    remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 50 );

    And have tried in plugins/bp-custom.php and in my theme’s functions.php file but no joy.

    Looks like things have changed over the years and that plugins to do this that worked for earlier BuddyPress versions have disappeared also.

    When someone enter something under Activity (under their profile) and post an update, the contents of that update will have URLs links automatically, something we want to do to discourage the actual humans (not bots) who are spamming our site.

    Thanks!

Viewing 1 replies (of 1 total)

  • bp-help
    Participant

    @bphelp

    @loki_mdog
    Have you tried this slight variation?

    
    function remove_xprofile_links() {
    remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 );
    }
    add_action( 'init', 'remove_xprofile_links' );
    
Viewing 1 replies (of 1 total)
  • The topic ‘Stopping auto links’ is closed to new replies.
Skip to toolbar