Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Remove rel=“nofollow” for buddypress links

Discussion in 'Misc WordPress Requests' started by thebosh93, Feb 22, 2018.

  1. thebosh93

    Guest

    Remove rel=“nofollow” for buddypress links, by thebosh93

    Hi im trying to remove the rel nofollow for links posted on buddypress for admin users.

    Code that I have tried just to simply remove the nofollow for all users doesn’t seem to be working:


    add_action( ‘bp_loaded’, function() {

    remove_filter( ‘bp_get_activity_content’, ‘bp_activity_make_nofollow_filter’ );

    remove_filter( ‘bp_get_activity_content_body’, ‘bp_activity_make_nofollow_filter’ );

    remove_filter( ‘bp_get_activity_parent_content’, ‘bp_activity_make_nofollow_filter’ );

    remove_filter( ‘bp_get_activity_latest_update’, ‘bp_activity_make_nofollow_filter’ );

    remove_filter( ‘bp_get_activity_latest_update_excerpt’, ‘bp_activity_make_nofollow_filter’ );

    remove_filter( ‘bp_get_activity_feed_item_description’, ‘bp_activity_make_nofollow_filter’ );

    } );

    It appears wordpress is just ignoring/overwriting these filter no matter what I do

    Remove rel=“nofollow” for buddypress links
     
    #1

Share This Page

Monarch Social Sharing Plugin